Write an application that reads (from the keyboard) a series of pairs of numbers as follows: product number quantity sold Run your program from a simple menu with the following options Enter products sold Display total retail value Exit Your program should allow for entry of multiple products without returning to the main menu (use a sentinel-controlled loop) use a switch statement to determine the retail price for each product calculate and display the total retail value of all products sold
This conversation is currently closed to new comments.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Computer programming Homework
An online retailer sells five products whose retail prices are as follows:
Product 1, $2.98
Product 2, $4.50
Product 3, $3.98
Product 4, $4.49
Product 5, $6.87
Write an application that reads (from the keyboard) a series of pairs of numbers as follows:
product number
quantity sold
Run your program from a simple menu with the following options
Enter products sold
Display total retail value
Exit
Your program should
allow for entry of multiple products without returning to the main menu (use a sentinel-controlled loop)
use a switch statement to determine the retail price for each product
calculate and display the total retail value of all products sold