This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
David Chong
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bosun
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think his 3 hours are up anyway!!

------------------
Dave
Sun Certified Programmer for the Java� 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic