A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are as follows:





Develop a C# app that inputs one salesperson’s items sold for the last week, then calculates and dis- plays that salesperson's earnings. There’s no limit to the number of items that can be sold by a salesperson.

Top:
For an arbitrary number of salespeople, determine each salesperson’s earnings for the previous week
First refinement:
For each salesperson
Input the salesperson’s sales for the week
Calculate and print the salesperson’s wages for the week
Second refinement:
Prompt the user for the first salesperson’s sales in dollars
Input the first salesperson’s sales in dollars
While the sentinel value (-1) has not been entered for the sales
Calculate the salesperson’s wages for the week as 200 dollars added to 9 percent of
the salesperson’s sales (calculated by multiplying the sales with .09)
Print the salesperson’s wages for the week
Prompt the user for the next salesperson’s sales in dollars
Input the next salesperson’s sales in dollars

Computer Science & Information Technology

You might also like to view...

You can create or modify styles using commands in the Styles group, which is located on the ________ tab

A) DESIGN B) DEVELOPER C) FORMAT D) HOME

Computer Science & Information Technology

The Hartford insurance company estimates that, on average, __________ businesses that don't have a disaster plan go out of business after a major loss like a fire, a break-in, or a storm.

A. over 40 percent of  B. at least 60 percent of C. about 20 percent of D. two percent of

Computer Science & Information Technology