Week4_Assignment - Each pair of numbers represents a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming Assignment 5 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, product 5 - $6.87. Write an applet that accepts pairs of numbers: 1. Product number 2. Quantity sold
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Each pair of numbers represents a purchase. Your program must use a switch statement to determine the retail price for a purchase. Your program should calculate and display the total retail value of the purchase, and a grand total of all purchases....
View Full Document

This note was uploaded on 10/12/2009 for the course CS 120 taught by Professor Robertdependahl during the Fall '09 term at Santa Barbara City.

Ask a homework question - tutors are online