Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need a Visual Studio C++ code using simple looping technique A mail order house sells five different products whose product numbers and retail prices are:

image text in transcribed

Need a Visual Studio C++ code using simple looping technique

A mail order house sells five different products whose product numbers and retail prices are: product 1-$2.98, product 2 - $4.50, product 3 - $9.98, product 4 -$4.49, product 5-$6.87 a) Write a program that reads a series of pairs of numbers (from user). That is, each time it reads the pairs of values as follows: i) product number ii) quantity of that product sold b) Your program should use a switch statement to determine the retail price for each product c) Your program should calculate and display the total retail value of all products sold d) Use a sentinel-controlled while loop so user can indicate when the program should stop

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

Select suitable tools to analyze service problems.

Answered: 1 week ago