Determine the retail price for product


Discussion:

Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; product 5, $6.87. I need help with writing an application that reads a series of pairs of numbers as follows:

a) product number
b) quantity sold

The program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Determine the retail price for product
Reference No:- TGS01934849

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)