A mail order house sells five different products whose product numbers and retail prices are: product 1 - $2.98, product 2 - $4.50, product 3 - $9.98, product 4 - $4.49, product 5 - $6.87. Write a...

C++A mail order house sells five different products whose product numbers and retail prices are:<br>product 1 - $2.98, product 2 - $4.50, product 3 - $9.98, product 4 - $4.49, product 5 - $6.87.<br>Write a program that reads a series of pairs of numbers (from user). That is, each time it reads the<br>pairs of values as follows:<br>i) product number<br>ii) quantity of that product sold<br>Your program should use a switch statement to determine the retail price for each product.<br>Your program should calculate and display the total retail value of all products sold.<br>Use a sentinel-controlled while loop so user can indicate when the program should stop looping and<br>display the final results.<br>

Extracted text: A mail order house sells five different products whose product numbers and retail prices are: product 1 - $2.98, product 2 - $4.50, product 3 - $9.98, product 4 - $4.49, product 5 - $6.87. Write a program that reads a series of pairs of numbers (from user). That is, each time it reads the pairs of values as follows: i) product number ii) quantity of that product sold Your program should use a switch statement to determine the retail price for each product. Your program should calculate and display the total retail value of all products sold. Use a sentinel-controlled while loop so user can indicate when the program should stop looping and display the final results.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here