Question: *Java* You can hard code this or use Java Swing Frame and the toolbox if you like. Whichever you prefer. Make a windows program in
*Java*
You can hard code this or use Java Swing Frame and the toolbox if you like. Whichever you prefer.
Make a windows program in Java that has a labeled text field for the price of a Meal. There are different discounts for None, Student, and Senior and your program should have these as radio buttons. There should be a way to add a drink to the order (up to you how you handle this) or choose no drink, they are .70 here. There should be a button to print the order and a label or disabled text field for output. Students receive a free drink or get .70 off if no drink ordered and seniors receive 15% off the entire order. Add event handling to the button find the value the user enters after taking into account the choice of possible discounts by the currently selected radio button.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
