Reference no: EM131369682
OBJECTIVES
- Create a GUI that uses JCheckBox, JRadioButton, JTextArea, and menus.
- Process multiple events.
PROBLEM: BurgersRUs Point of Sale system
Burger Barn needs a point of sale application. The products and prices are as follows.
Burgers: single $3.50, double $4.75
Add cheese: + $.50
Add bacon: + $1.25
Make it a meal: + $4.00
FUNCTIONAL REQUIREMENTS
You can code the GUI by hand or use NetBeans GUI builder interface.
The GUI should use JRadioButton to choose single or double burger.
- Single burger
- Double burger
It should use JCheckBox for add ons.
- Add cheese
- Add bacon
- Make it a mealJTextField for item price, order quantity, order totalJTextArea to display the receipt
Create a menu with the following options.
File Order
Exit Add to Order
Clear for next item
New Order
As the user selects items, the item price should be calculated and updated accordingly.
Note that quantity should default to 1. The user can change if needed.
Once choices are made and quantity is entered, process the order using the menu options.
Order-Add to Order Displays the choice and price in each text area.
Note that multiple items can accumulate in a single order
Updates the order total
Order-Clear for next item Clears the checkboxes. Note that quantity should default to 1
Order-New Order Clears the GUI and totals for a new order
File-Exit Exits the program. Use System.exit(0) commad.
Sample GUI
Probability that an endangered species depends on forests
: If 30% of endangered species are in critical danger and depend on forests for their habitat, what is the probability that an endangered species that depends on forests is in critical danger?
|
Why would java advocates support unix
: Why would Java advocates support UNIX? Do you agree with Java advocates? Explain why or why not.
|
Find and sketch the sample regression line
: Find and sketch the sample regression line of y and x and the given data points on the same axis. Speed of car in mph (x) vs Stopping distance (ft): (30, 150), (40, 195), (50, 240), (60, 295)
|
Explain how multiple activity chart
: In your own words, clearly and completely explain how a Multiple Activity Chart can be used to improve the performance of an operation.
|
Create a gui that uses jcheckbox
: Create a GUI that uses JCheckBox, JRadioButton, JTextArea, and menus. Process multiple events.
|
Probability that at least one of them is overweight or obese
: According to USA Today, 65% of Americans are overweight or obese. If five Americans are chosen at random, what is the probability that at least one of them is overweight or obese?
|
Does fictitious payee rule come into play in this case
: Most of us are tempted from time to time to take s... Bookmark Most of us are tempted from time to time to take shortcuts to solve our problems. Instead, we work for what we have, we pay our bills, and we wait patently for our next paycheck. Whas thi..
|
What is chancellors probability of getting at least one job
: Assuming that there is no exchange of information, or influence, across universities as to their hiring decisions, and that the chancellor is as likely to be chosen as any other applicant, what is the chancellor's probability of getting at least o..
|
Which would require less wood and by what percent
: The channel cross section can be either a 90° triangle or a rectangle with a cross section twice as wide as its depth. Which would require less wood and by what percent?
|