Answer:
They provide a clue about what to expect in a program
Write a class named Employee that has private data members for an employee's name, ID_number, salary, and email_address. It should have an init method that takes four values and uses them to initialize the data members. It should have get methods named get_name, get_ID_number, get_salary, and get_email_address. Write a separate function (not part of the Employee class) named make_employee_dict that takes as parameters a list of names, a list of ID numbers, a list of salaries and a list of email addresses (which are all the same length). The function should take the first value of each list and use them to create an Employee object. It should do the same with the second value of each list, etc. to the end of the lists. As it creates these objects, it should add them to a dictionary, where the key is the ID number and the value for that key is the whole Employee object. The function should return the resulting dictionary. For example, it could be used l
Solution :
class Employee:
#Define the
#constructor.
def __[tex]$\text{init}$[/tex]__([tex]$\text{self, nam}e$[/tex], ID_number, [tex]$\text{salary}$[/tex], email):
#Set the values of
#the data members of the class.
[tex]$\text{self.nam}e$[/tex] = name
[tex]$\text{self.ID}$[/tex]_number = ID_number
[tex]$\text{self.salary}$[/tex] = salary
self.email_address = email
#Define the function
#make_employee_dict().
def make_employee_dict(list_names, list_ID, list_salary, list_email):
#Define the dictionary
#to store the results.
employee_dict = {}
#Store the length
#of the list.
list_len = len(list_ID)
#Run the loop to
#traverse the list.
for i in range(list_len):
#Access the lists to
#get the required details.
name = list_names[i]
id_num = list_ID[i]
salary = list_salary[i]
email = list_email[i]
#Define the employee
#object and store
#it in the dictionary.
employee_dict[id_num] = Employee(name, id_num, salary, email)
#Return the
#resultant dictionary.
return employee_dict
Plzz help will mark brainliest
Answer:
11. 3 dimensions
12. ( i believe its number 3)
13. 2 option
14. Natural Light
15. Development
Explanation:
InfoTrac is an aggregated database?
True
False
Answer: true
Explanation:
pleaseeeeeeee tellllllllllllllllllllll
Answer:
visual communication
hope it helps
stay safe healthy and happy.Answer:
visual communication will be the correct answer
When parameters are passed between the calling code and the called function, formal and actual parameters are matched by: a.
Answer:
their relative positions in the parameter and argument lists.
Explanation:
In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.
Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.
For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.
A parameter can be defined as a value that must be passed into a function, subroutine or procedure when it is called.
Generally, when parameters are passed between a calling code and the called function, formal and actual parameters are usually matched by their relative positions in the parameter and argument lists.
A formal parameter is simply an identifier declared in a method so as to represent the value that is being passed by a caller into the method.
An actual parameter refers to the actual value that is being passed by a caller into the method i.e the variables or values that are passed while a function is being called.
Line 9 and 10
To calculate your taxable income, subtract the sum of lines 8
and 9 from line 7, and then enter that number here.
Answer:
22,332
Explanation:
The taxable income :
Line 8 = Standard deduction or itemized deduction
Line 9 = Qualified business income deduction
Line 7 = Adjusted gross income
Taxable income = Adjusted gross income - (Qualified business income deduction + standard deduction)
Taxable income = 34732 - (12400 + 0)
Taxable income = 34732 - 12400
Taxable income = 22,332
public class Square extends Shape{
/**Like with Shape, we will be making a static instance variable
* to keep track of how many squares we have made. It is very
* similar to the one in shape, and it's uses are similar as well.
* It too is initialized to zero.
*
* We may also need additional instance variables, which you should
* declare as needed. They will not need to be static nor initialized
* here though.
**/
/**You may need additional instance variables. Declare them here.
**/
/**The constructor for Square is a little more involved than the
* Shape constructor, as it takes a single double parameter representing
* the side length. It should also call the super constructor, as
* calling it increments the number of shapes made, which we should
* do (as a Square extends Shape). We also need to increment the
* instance variable representing the number of squares made, and handle
* our parameter appropriately.
**/
public Square(double sideLength){
}
/**Like with our other shapes, this is a simple getter method for our
* static instance variable.
**/ public static int getNumSquaresMade(){
return -1;
}
/**As always, we must override getSize() for our Square. A Square's size
* is simply it's side length squared.
**/
}
public class Shape{
private static int numShapesMade = 0;
public Shape(){
numShapesMade++;
}
public static int getNumShapesMade(){
return numShapesMade;
}
public double getSize(){
return 0;
}
}
Answer:
I would say A
Explanation:
Enjoy :)
Populations are effected by the birth and death rate, as well as the number of people who move in and out each year. The birth rate is the percentage increase of the population due to births and the death rate is the percentage decrease of the population due to deaths. Write a program that displays the size of a population for any number of years. The program should ask for the following data:
• The starting size of a population
• The annual birth rate
• The annual death rate
• The number of years to display
Write a function that calculates the size of the population for a year. The formula is
N = P + BP − DP
where N is the new population size, P is the previous population size, B is the birth rate, and D is the death rate.
Input Validation: Do not accept numbers less than 2 for the starting size. Do not accept negative numbers for birth rate or death rate. Do not accept numbers less than 1 for the number of years.
#include
using namespace std;
double calcOfPopulation(double, double, double);
double inputValidate(double, int);
int main()
{
double P, // population size
B, // birth rate %
D, // death rate %
num_years;
cout << "Starting size of population: ";
P = inputValidate(P, 2);
cout << "Annual birth rate: %";
B = inputValidate(B, 0);
cout << "Annual death rate: %";
D = inputValidate(D, 0);
cout << "Number of years to display: ";
num_years = inputValidate(num_years, 1);
cout << "Population size for "
<< num_years << " years "
<< " = "
<< (calcOfPopulation(P, B, D) * num_years)
<< endl;
return 0;
} // END int main()
double inputValidate(double number, int limit)
{
while(!(cin >> number) || number < limit)
{
cout << "Error. Number must not be "
<< " 0 or greater:";
cin.clear();
cin.ignore(numeric_limits::max(), '\n');
}
return number;
}
double calcOfPopulation(double P, double B, double D)
{
B *= .01; // 3.33% = .0333
D *= .01; // 4.44% = .0444
return P + (B * P) - (D * P);
Answer:
See attachment for program source file
Explanation:
The source code in the question is not incorrect; just that, it was poorly formatted.
So, what I did it that:
I edited the source code to be in the right formats.numeric_limits needs the <limits> header file to work properly. The <limits> header file was not included in the original source file; so, I added #include<limits> at the beginning of the source fileI corrected the wrongly declared function prototypes.See attachment for the modified program source file
it is a group of two or more computer system connect to each other
network is a group of two or more computer system connected together
1. A bank customer invested $24 in a bank with 5 percent simple interest per year, write a program the construct a table showing how much money the bank customer would have at the end of each 20- year period starting in 2021 to 2041.
2. A programmer starts with salary of $65,000 and expect to receive $1500 raise each year. Write a program to compute and print the programmer's salary for each of the first 10 years and total amount of money the programmer would receive over the 10- year period.
Answer:
1.lettuce is 2021 to 2,000 4136 verse 2. that is 10 years to tell if your 10 years 20 years old point monthKomunikasi, dengan program ini kita juga bisa berkomunikasi dengan pengguna lain.Program ini sudah dirancang untuk bisa saling bertukar informasi dalam bentuk jaringan dimana orang lain bisa membuka lembar kerja kita dari terminal (komputer) yang berlainan,bahkan ia juga bisa melakukan perubahan pada lembar kerja yang sama pada saat yang bersamaan pula. Kata pengguna lain dapat disebut dengan kata:_____________
Answer:
what language is this?
Explanation:
Code a Python program that uses a graphical user interface (GUI) to address a real-world problem. Within reason, you may choose to address any real-world problem that you would like; however, please only choose a real-world problem that is both safe and legal.
Answer:
Explanation:
The following is a simple GUI Python program that solves for the different variables in a Pythagorean theorem equation, which is a real-world problem that many students have to face on a daily basis. The output can be seen in the attached picture below. Due to technical difficulties, I have added the code as a txt file attachment.
explain the errors in each error in spreadsheet and how to correct each
Answer:
###### error. Problem: The column is not wide enough to display all the characters in a cell. ...
# Div/0! error. ...
#Name? error. ...
#Value! error. ...
#REF! error. ...
#NUM! error. ...
#NULL error.
Explanation:
In this lab, you use what you have learned about searching an array to find an exact match to complete a partially prewritten C program. The program uses an array that contains valid names for 10 cities in Michigan. You ask the user to enter a city name; your program then searches the array for that city name. If it is not found, the program should print a message that informs the user the city name is not found in the list of valid cities in Michigan. The file provided for this lab includes the input statements and the necessary variable declarations. You need to use a loop to examine all the items in the array and test for a match. You also need to set a flag if there is a match and then test the flag variable to determine if you should print the the Not a city in Michigan. message. Comments in the code tell you where to write your statements. You can use the previous Mail Order program as a guide. Instructions Ensure the provided code file named MichiganCities.cpp is open. Study the prewritten code to make sure you understand it. Write a loop statement that examines the names of cities stored in the array. Write code that tests for a match. Write code that, when appropriate, prints the message Not a city in Michigan.. Execute the program by clicking the Run button at the bottom of the screen. Use the following as input: Chicago Brooklyn Watervliet Acme
Answer:
Complete the program as follows:
for(int i = 0; i<10; i++){
if(inCity == citiesInMichigan[i]){
foundIt = true;
break; } }
if(foundIt){ cout<<"It is a city"; }
else{ cout<<"Not a city"; }
Explanation:
Required
Complete the pre-written code in C++ (as indicated by the file name)
The pre-written code; though missing in this question, can be found online.
The explanation of the added lines of code is as follows:
This iterates through the array
for(int i = 0; i<10; i++){
This checks if the city exists in the array
if(inCity == citiesInMichigan[i]){
If yes, foundIt is updated to true
foundIt = true;
And the loop is exited
break; } } -- The loop ends here
If foundIt is true, print it is a city
if(foundIt){ cout<<"It is a city"; }
Print not a city, if otherwise
else{ cout<<"Not a city"; }
// MichiganCities.cpp - This program prints a message for invalid cities in Michigan.// Input: Interactive// Output: Error message or nothing#include <iostream>#include <string>using namespace std;int main(){ // Declare variables string inCity; // name of city to look up in array const int NUM_CITIES = 10; // Initialized array of cities string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"}; bool foundIt = false; // Flag variable int x; // Loop control variable // Get user input cout << "Enter name of city: "; cin >> inCity; // Write your loop here for (x = 0; x < NUM_CITIES; x++) { // Write your test statement here to see if there is // a match. Set the flag to true if city is found. if (inCity == citiesInMichigan[x]) { foundIt = true; cout << "City found." << endl; break; } else { foundIt = false; } } // Test to see if city was not found to determine if // "Not a city in Michigan" message should be printed. if (!foundIt) { cout << "Not a city in Michigan." << endl; } return 0; } // End of main()
Which of the following is primarily operated by a touchscreen?
Mobile device
Notebook
Desktop
Network
Answer: The correct answer is Mobile device
Explanation:
A Mobile device is any portable equipment that can be easily connected to an internet. Example of mobile devices include; smart phones, palmtop, smart watch and other computer gadgets. The use of touchscreen for input or output on mobile devices can not be overemphasized. Mobile devices are handy and can be used for making work easy. As such, in order to effectively use mobile devices, touchscreen can be primarily used.
In Python what are the values passed into functions as input called?
state 4 basic operation performed by a computer
Answer:
The processes are input, output, storing,processing, and controlling.
pleaseeeeeeee tellllllllllllllllllllll
Answer:
true is the correct answer
// Exercise 4.16: Mystery.java
2 public class Mystery
3 {
4 public static void main(String[] args)
5 {
6 int x = 1;
7 int total = 0;
8
9 while (x <= 10)
10 {
11 int y = x * x;
12 System.out.println(y);
13 total += y;
14 ++x;
15 }
16
17 System.out.printf("Total is %d%n", total);
18 }
19 } // end class Mystery
Answer:
385
Explanation:
There was no question so I simply run the program for you and included the output.
The program seems to calculate: [tex]\sum\limits_{x=1}^{10} x^2[/tex]
How wireless communication might affect the development and implementations of internet of things?
What allows you to navigate up down left and right in a spreadsheet?
Answer:
scrollbar?
Explanation:
____________
Please answer it’s timed
Answer:
product safety
Explanation:
brainly:)^
state two ways of moving an icon from one location to another
Answer:
To arrange icons by name, type, date, or size, right-click a blank area on the desktop, and then click Arrange Icons.
Click the command that indicates how you want to arrange the icons (by Name, by Type, and so on).
If you want the icons to be automatically arranged, click Auto Arrange.
If you want to arrange the icons on your own, click Auto Arrange to remove the check mark.
Explanation:
how do you fix The lag on your zsnes emulator I’m playing it on My laptop
Answer:
Use a laptop that is not a potato.
Explanation:
ZSNES has super low system requirements, so if it's running poorly you are probably running it on a potato. You might also try a different emulator such as BSNES, if you think that the problem is not the underpowered computer.
Which of the following are examples of nontoxic materials used in computer equipment?
gold, silver, copper
arsenic, copper, gold
dioxin, silver, gold
copper, silver, lead
Answer: Gold, Silver, Copper
Explanation:
Gold is very useful in computers as it can be used for connectors, connecting wires and even memory chips. It is a nonreactive metal and so is not toxic unless it is consumed (and in large quantities).
Silver is another nontoxic metal used in computers to make circuit boards, cellphones and even keyboard components. Finally there is the very important copper which is a useful electronic component for more than just computers. This non-toxic metal has contributed significantly to the development of many things electrical including, as already mentioned, computers.
what functions can you perform with project management software?
Answer:
Planning and scheduling. ...
Collaboration. ...
Documentation. ...
Reporting. ...
Resource management. ...
Managing the project budget.
Explanation:
Complete the sentences about interactive media.
With (cipher text, hypertext, teletext,) text is the main element of the content. (hypermedia, hypervideo, dynamic media) on the other hand, includes text as well as audio, video, and animation.
Answer:
teletext
dynamic media
Explanation:
Answer:
1, teletext
2, dynamic media
Explanation:
A pharmaceutical company is going to issue new ID codes to its employees. Each code will have three letters followed by one digit. The letters and and the digits , , , and will not be used. So, there are letters and digits that will be used. Assume that the letters can be repeated. How many employee ID codes can be generated
Answer:
82,944 = total possible ID's
Explanation:
In order to find the total number of combinations possible we need to multiply the possible choices of each value in the ID with the possible choices of the other values. Since the ID has 3 letters and 1 digit, and each letter has 24 possible choices while the digit has 6 possible values then we would need to make the following calculation...
24 * 24 * 24 * 6 = total possible ID's
82,944 = total possible ID's
What is the first step you should take when you want to open a savings account? A. Present your photo ID to the bank representative. B. Go to the bank and fill out an application. C. Make your initial deposit. D. Review the different savings account options that your blunk offers.
Answer: B
Explanation:
list eight applications software
Answer:
Eight applications software are:
Word processing softwareSpreadsheet software Graphics software Database software Web browser softwareAnimation softwareInternet browser softwares like: fire fox, chrome etcPresentation software