![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 1
Rep Power: 0
![]() |
HELP!!! Dialog box, inputoutput, and absolute value homework
Can someone please help me. This is my 4th homework assignment, and i am confused. here is the the assignment.
-->>> Programming Assignment 4 A catering service has the following schedule of charges for meals that it serves to groups. * Lunch 11.50 * Dinner 16.75 * Soup and Salad Only 7.85 They currently have a special that allows a ten percent discount on a certain type of meal in each of the following cases. * 12 or more lunches * 6 or more dinners * 10 or more soup and salad Write a Java program that reads the number of lunches, the number of dinners, and the number of soup and salad meals. Then does the computations and prints results as indicated below. Read the values mentioned above using dialog boxes. The program should compute, for each category, the cost of the meals received in each category, the discount, and the final cost of the meals. It should then compute the total cost of all meals. All of the items should be displayed in one or more dialog boxes. Ten items will be displayed. Be sure to compute and display all ten. Be sure to format the output. Make your output attractive and include appropriate comments in your program. Thank you so much. My problem is that i don't know how to mix the joptionpane with absolute or IF or ELSE statements. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|