Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 6.17:- A website sells 3 products whose retail prices are as follows: product 1, $2.98; product 2, $4.50; and product 3, $9.98. Write an

Exercise 6.17:- A website sells 3 products whose retail prices are as follows: product 1, $2.98; product 2, $4.50; and product 3, $9.98. Write an app that reads a series of pairs of numbers as follows: Product number Quantity sold Your console app Sales should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use sentinel controlled loop to determine when an app should stop looping and display the final results. Must be written in C# Expected output: Enter Product number <1-3> <0 to stop>: 1

Enter quantity sold: 2

Enter Product number <1-3> <0 to stop>: 3

Enter quantity sold: 2

Enter Product number <1-3> <0 to stop>: 2

Enter quantity sold: 10

Enter Product number <1-3> <0 to stop>: 3

Enter quantity sold: 5

Enter Product number <1-3> <0 to stop>: 0

Product 1:$5.96

Product 2:$45.00

Product 3:$69.86

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

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions