Control Statement/ Switch Statements
can Someone Please show me the code for this question..
I'm having problem with switch statements..
I Just really need to see an example of a code to use for my backbone to go from there..
i wanna master all the control statements but im having serious problems with the switch..
Your help will be greatly appreciated.. thanks
An online retailer sells five products whose retail prices are as follows:
Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49 and product 5, $6.87.
Write an application that reads a series of pairs of numbers as follows:
a) product number
b) quantity sold
Your program 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 a sentinel-controlled
loop to determine when the program should stop looping and display the final results.
Re: Control Statement/ Switch Statements