Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Write an application to calculate retail sales. Specifications An online retailer sells five products whose retail prices are as follows: Product 1, $2.98 Product

c++

Write an application to calculate retail sales.

Specifications

An online retailer sells five products whose retail prices are as follows:

Product 1, $2.98

Product 2, $4.50

Product 3, $3.98

Product 4, $4.49

Product 5, $6.87

Your program should read (from the keyboard) a series of pairs of numbers as follows:

product number

quantity sold

Run your program from a simple menu with the following options

Enter products sold

Display total retail value

Exit

Your program should

allow for entry of multiple products without returning to the main menu (use a sentinel-controlled loop)

use a switch statement to determine the retail price for each product

calculate and display the quantity and total retail value of each product sold

total and display the retail value of all products sold

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago