Answer to Question #129081 in C++ for rana

Question #129081

A Market has four different items whose prices are: item 1 — $2.98, item 2—$4.50, item 3—$9.98, item 4—$4.49

 Write a program that reads a series of pairs of numbers such as ( a) product number b) quantity sold.)

Your program should use a switch structure to calculate the price for each product.

Your program should display your first name when user selects item 1 , or display your last name when user selects item 2, and display your middle name when user selects item 3, and nothing to display with item4.

Your program should calculate and display the total value of all products sold.

Your program should display the total number of each product category sold.

You do not know the number of items in advance, use a sentinel-controlled loop to determine when the program should stop looping and display the final results.



1
Expert's answer
2020-08-11T10:45:39-0400
Dear rana, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS