• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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.
 
"The Hood"
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.
 
Ranch Hand
Posts: 1512
  • 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
 
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
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!