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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
You know the right answer?
A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plu...
Questions
question
Biology, 22.09.2019 22:30
question
Mathematics, 22.09.2019 22:30
question
Social Studies, 22.09.2019 22:30
Questions on the website: 13722363