File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes School assignment... submission in 3 hours. Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "School assignment... submission in 3 hours. Help! " Watch "School assignment... submission in 3 hours. Help! " New topic

School assignment... submission in 3 hours. Help!

David Chong

Joined: Oct 03, 2001
Posts: 1
OMG. I missed 2 classes and I'm stuck with this. Here's what my lecturer gave me. SMS(Save my soul)!
A mail order house sells five different products with different retail prices. Write an application that reads a series of pairs of numbers as follows:
a) Product number
b) Quantity sold for one day
The program should use switch structure to help determine the retail price for each product and calculate and display the total retail value for all products sold last week. Uses sentinel-control loop to determine when the program should stop looping and display the final result.
I thank anybody who helped me in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
So show us what you have so far, and tell us which part that you are having trouble with.
If you expect to just get it on a silver platter - you came to the wrong place.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You are absolutely correct Cindy. The only way to learn this thing is to at least try it out. David, this seems simple enough, and we would not be doing you justice by just telling you exactly what to do.

So much trouble in the world -- Bob Marley
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
I think his 3 hours are up anyway!!

Sun Certified Programmer for the Java� 2 Platform

I agree. Here's the link:
subject: School assignment... submission in 3 hours. Help!
It's not a secret anymore!