1. Engineering
  2. Computer Science
  3. a mailorder house sells five different products whose retail prices...

Question: a mailorder house sells five different products whose retail prices...

Question details

A mail-order house sells five different products whose retail prices are as follows: produc $2.98: product 2, $4.50; producr 3, $9.98; product 4, S4.49; and product 5, 56.87. Write a script that reads a series of pairs of numbers as follows: a) Product number Quantity sold for one day b) Your program should use a switch statement to help determine the retail price for each product and should calculate and output HTML5 that displays the total retail value of all the products sold last week. Use a prompt dialog to obtain the product number and quantity from the user. Use a sen- tinel-controlled loop to determine when the program should stop looping and display the final results The output should look like Product Totals Total Sales 14.9 Product # Product 1 Product 2 Product 3 Product 4 Product 5 35.92

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution