A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus

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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java How To Program Late Objects Version

ISBN: 9780136123712

8th Edition

Authors: Paul Deitel, Deitel & Associates

Question Posted: