subject

A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. for example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000 for a total of $650. Program Specifications Write an interactive program that asks for the gross weekly sales of each of the company's salespeople and displays a histogram that shows how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson's salary is truncated to an integer amount. You do not know how many salespeople are in the company so your interactive loop asking for data should end only when the user wants to quit. 200-299 300-399 400-499 500-599 600-699 700-799 800-899 900-999 1000 and over Design your own dictionary of key/value pairs, where the key gives you a number signifying the range The value for each key is zero to begin with. The value of the particular key will be incremented by the data entered from the keyboard. You must use at least one function in your program. For instance, the displaying of the histogram could be within a function. You would need to at least pass the dictionary from the main body of the program to the function when the function is called. The function should be at the top of your source code and the main body of your program after all functions. The interactive design is up to you and the output should be something like the following if the 10 sales enter were 5000, 195, 1200, 8000,12500,9000,3000,400,1580,75 200-299 *** 300-399 ** 400-499 * 500-599 600-699 * 700-799 800-899 900-999 * 1000 and over **

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:00, lilyforeman5867
Match each vocabulary word to its definition.1. desktoppicture used to represent acomputer application2. domainnetwork protectionsoftware code that can be viewed,3. iconmodified, and redistributed for freethe background screen on acomputer monitor4. url5. blogan online journalthe part of an internet address that6. firewallrefers to a group of computers on anetworkonline database of web pages7. intranetnetwork for use by an individual8. open address of a web page or9. wikiresource
Answers: 2
image
Computers and Technology, 23.06.2019 00:40, QueenKy6050
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why. a.) student. course. callnum = "csc230"; b.) cin > > student. name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student. name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist. course. credits = 3; j.) course = studenttype. course;
Answers: 1
image
Computers and Technology, 24.06.2019 12:10, breezer20042
What is it called during the editing process when the processor ensures that a character holding a coffee mug from one angle is holding the same mug in the same way when the shot switches to another camera at another angle? cinematography continuity technology prop use
Answers: 1
image
Computers and Technology, 24.06.2019 18:50, LouieHBK
Which style did jack use on the vocabulary words in reports?
Answers: 2
You know the right answer?
A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plu...

Questions in other subjects:

Konu
Physics, 09.02.2021 19:50
Konu
Mathematics, 09.02.2021 19:50