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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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