Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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