Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago

Question

3. Describe the strategic training and development process.

Answered: 1 week ago

Question

10. Microsoft Corporation

Answered: 1 week ago