Question: 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.

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, ora total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are shown in Fig. 3.15. Develop a Java application that inputs one salesperson’s items sold for last week and calculates and displays that salesperson’s earnings. There’s no limit to the number of items that can be sold.

Fig. 3.15

Item 1 AWNP 2 3 4 Value 239.99 129.75 99.95 350.89

Perform each of the following steps:

a) Read the problem statement.

b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.

c) Write a Java program.

d) Test, debug and execute the Java program.

e) Process three complete sets of data.

Item 1 AWNP 2 3 4 Value 239.99 129.75 99.95 350.89

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The problem statement has been read and the task is to create a Java application that calculates t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!