Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

4. What will the team agreement contain?

Answered: 1 week ago