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 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories.
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
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
question
Mathematics, 22.10.2019 06:50
question
Mathematics, 22.10.2019 06:50
Questions on the website: 13722362