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
You might also like to view...
What is the name of your home directory?
Your home directory is the directory you are working in when you first log in on the system. Up to this point you have worked only in your home direc- tory. When called by itself, the cd (change directory; Sobell, page 92) command makes your home directory the working directory (the directory you are working in). The pwd (print working directory; Sobell, page 87) command displays the name of the working directory. Give a cd command to make sure you are working in your home directory. Then give a pwd com- mand to confirm you are working in your home directory.
Screen readers read from right to left.
Answer the following statement true (T) or false (F)
Running update and delete queries are the same as using the Cascade Update Related Fields and Cascade Delete Related Records property in the Relationships window
Indicate whether the statement is true or false
Explain how to capture a screen shot of a sorted table.
What will be an ideal response?