Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started