Create a console application YourLastNameAlP3SC and use a one-dimensional array to solve the following problem: A 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 grosses $5,000 in sales in a week receives $200 plus 9% of $5,000, or a total of $650. Write an application (using an array of counters) that determines how many of the salespeople eamed salaries in each of the following ranges (assume that each salesperson's salary is truncated to an integer amount. Also use a while loop. If the gross sale is 0 or negative, the while loop terminates.): a) $200–299 b) $300–399 c) $400–499 d) $500–599 e) $600-699 f) $700-799 e) $800-899 h) $900–999 ) $1,000 and over Your program's output should look like this picture. PS C: \Users\Shao\Desktop\COMP316eShao\Assignment1\ShaoA1P35c> dotnet run Assignment1 Problem3_by Guifeng Shao Enter sales amount (negative to end): 900 Enter sales amount (negative to end): 9000 Enter sales amount (negative to end): 9000e Enter sales amount (negative to end): 1000 Enter sales amount (negative to end): 1500 Enter sales amount (negative to end): 2000 Enter sales amount (negative to end): 4000 Enter sales amount (negative to end): 6e0e Enter sales amount (negative to end): 7500 Enter sales amount (negative to end): 55e0 Enter sales amount (negative to end): 3300 Enter sales amount (negative to end): -1 Number Range $200-$299 $300-$399 $400-$499 $500-$599 $600-$699 $700-$799 2 2 $8ee-$899 $90e-$999 $10ee and aver 2
Create a console application YourLastNameAlP3SC and use a one-dimensional array to solve the following problem: A 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 grosses $5,000 in sales in a week receives $200 plus 9% of $5,000, or a total of $650. Write an application (using an array of counters) that determines how many of the salespeople eamed salaries in each of the following ranges (assume that each salesperson's salary is truncated to an integer amount. Also use a while loop. If the gross sale is 0 or negative, the while loop terminates.): a) $200–299 b) $300–399 c) $400–499 d) $500–599 e) $600-699 f) $700-799 e) $800-899 h) $900–999 ) $1,000 and over Your program's output should look like this picture. PS C: \Users\Shao\Desktop\COMP316eShao\Assignment1\ShaoA1P35c> dotnet run Assignment1 Problem3_by Guifeng Shao Enter sales amount (negative to end): 900 Enter sales amount (negative to end): 9000 Enter sales amount (negative to end): 9000e Enter sales amount (negative to end): 1000 Enter sales amount (negative to end): 1500 Enter sales amount (negative to end): 2000 Enter sales amount (negative to end): 4000 Enter sales amount (negative to end): 6e0e Enter sales amount (negative to end): 7500 Enter sales amount (negative to end): 55e0 Enter sales amount (negative to end): 3300 Enter sales amount (negative to end): -1 Number Range $200-$299 $300-$399 $400-$499 $500-$599 $600-$699 $700-$799 2 2 $8ee-$899 $90e-$999 $10ee and aver 2
Chapter6: Looping
Section: Chapter Questions
Problem 4GZ
Related questions
Question
C#
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,