Question: 7. A mail-order house sells five different products whose retail prices are as follows: product 1, $2.98; product 2, $4.50; product 3, S9.98; product 4,

7. A mail-order house sells five different products whose retail prices are as follows: product 1, $2.98; product 2, $4.50; product 3, S9.98; product 4, $4.49; and product 5, S6.87. Write a script (embedded in an HTML5 document) 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 each product's retail price, and should calculate and output a table that displays the total sales for each of the five products. Use a prompt dialog to obtain the product number and quantity sold from the user. Use sentinel-controlled loop to determine when the program should stop looping and display the final results. [15 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
