I am stuck on this big time, I have been floundering here for like 4 hours and if anyone can help I would be SO grateful, I have this program that I have to write that I cannot grasp. I dont expect anyone to write this for me, maybe some expert guidance or tips is all im asking.
I have to develop a program for a "small company" that sells 5 products with the prices procuct 1 $2.98, product 2 $4.50, product 3 $9.98, product 4 $4.49, and product 5 $6.87. The application has to read in the product number and the quantity sold. The program has to use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. It also has to use a sentinel-controlled loop to determine when the program should stop looping and display the final results.
Unfortunately I took this class as an elective and this is my final project. I have looked over this over and over and my book sucks!! Any help from you experts out there would be greatly appreciated. Thanks!
So far so good. You have not exactly made your program Object Oriented but it nearly passes all the tests. 1).Try not to write all your program in the main method. 2). What happens if the user enters the number 6 for the item code? 3). If I enter an illegal product code should I really be able to enter a quantity before an exception is thrown? 4). Please use the UBB Code tags when posting your code as it make it a lot easier to read indented code 5). If you are learning using the JDK1.5 then you might want to look at the Scanner class for reading from System.in 6). Will you get extra marks for creating a GUI (Graphical User Interface) or for using Input Dialogs to capture the user input?
Keep up the good work
subject: Im screwed and floundering, HELP PLEASE!!!