lilredthetease
2006-09-19 16:40:59 UTC
Question states:
A mail order house sells five different products whose retail prices are: product 1- $2.98, product 2 $4.50, product 3- $9.98, product 4- $4.49, and product 5- $6.87. Write a script that reads a series of pairs of numbers as follows:
a) Product Number
b) Quantity sold for one day
Your program should use a switch structure to help determine the retail price for each product. Your program should calculate and output HTML that displays the total retail value of all products sold last week. Use a prompt dialog to obtain the product number from the user. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.