Create a gui that uses jcheckbox

Assignment Help Basic Computer Science
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

Reference no: EM131369682

Questions Cloud

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?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determine the pressure and the internal energy

Refrigerant-134a at 800 kPa and 25°C is throttled to a temperature of -20°C. Determine the pressure and the internal energy of the refrigerant at the final state.

  What system must implement the fail-silence in value domain

What system must implement the fail-silence in the value domain? What are the differences between the TTP/C protocol and the TTP/A protocol? What is the controller state (C-state) of a TTP/C controller? How is the agreement of the C-state enforced..

  Maximum number of friends

Show that your relative's greedy algorithm may not always result in the maximum number of friends being invited to your party.

  Display all the records in emp table

Display the employee's names with first letter capitalized and all other letters lowercase for all employees whose name starts with J,A, or M

  Draw a graphic representation of the variable and its value

Draw a graphic representation of the variable and its value.

  Find the optimal shelf placement

Show that the greedy algorithm always finds the optimal shelf placement, and analyze its time complexity.

  Evaluating project performance

"Evaluating Project Performance" Please respond to the following: Suggest activities that can be performed by the project manager in order to evaluate individual performance, project planning, and how well the project met the measureable organizat..

  You can add require to any of the input types. true or false

You can add require to any of the input types. True or false

  Logic circuit to figure out how many of the bits

Design a logic circuit to figure out how many of the bits in a 6 bit unsigned number equal 1. Design the simplest possible circuit to accomplish this.

  Explanation or description explaining the purpose

Document and describe three separate registry hacks for 2008 and three separate Powershell commands that control or modify functionality on a 2008 Server System, explaining how and why you would use each separate change / modification to help with..

  Write a paper on incidents on incidents backup plan

Write a paper on "Incidents on Incidents Response/Disaster Recovery/Backup Plan". On each topic you have to give an incident. For 3 topics you have give 3 incidents and each incident should be a 1 Page length.

  Describe not be able to perform without microsoft office

Assume that you did not have access to Microsoft Office or other compatible application suites. Describe at least three (3) tasks that you would not be able to perform without Microsoft Office 2013.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd