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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 9E: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a...
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
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:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage