A mail order house sells five different 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 Write a program that prompts the user to enter the product number and the quantity sold and keeps the running total of products sold until the user inputs -1 for product number. At the end, the program will display the total retail value of all products sold. C++ please.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
Question

A mail order house sells five different 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

Write a program that prompts the user to enter the product number and the
quantity sold and keeps the running total of products sold until the user
inputs -1 for product number. At the end, the program will display the total
retail value of all products sold.

C++ please.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,