A mail order house sells five different products whose retail prices are: product 1-$2.98, product XXXXXXXXXXand product 3-S6.87. Write a program that reads a series of pairs 1. product number 2....

A mail order house sells five different products whose retail prices are: product 1-$2.98, product 2-59.98 and product 3-S6.87. Write a program that reads a series of pairs 1. product number 2. quantity sold program should calculate and displuy the total retail value of all products sold. Use a sentinel-controlled loop (0) to determine when the program should stop looping and display the results. Sample run: numbers as follows Enter the product number: 1 Enter the quantity: 5 Enter the product number: 2 Enter the quantity: 3 Enter the product number: 3 Enter the quantity: 2 Enter the product number: 0 The total retail value is 138.57
Nov 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here