Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92179525
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Question what is the syntax of the while construct in the c

Question : What is the syntax of the "while" construct in the c programming language? Show how the while construct can give the functionality of the "for" construct, for (init-phrase; test-cond; incr-phrase)

What are some of the basic principles involved with

What are some of the basic principles involved with utilizing the ADT stack? What are some applications that could effectively utilize a stack?

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Question lessons learned from the mirai botnet attack of

Question: Lessons learned from the Mirai Botnet attack of 2016 • Why was it so much more effective than previous BotNet designs? • What kind of mitigations would you recommend for protection? These two points must be ans ...

Recall the linked list data structure from previous week

Recall the linked list data structure from previous week, that follows a structure as given above. Purpose of this lab is to understanding the fundamentals of the Linked Lists. Please check the attached code and implemen ...

Taskwrite a cc program to emulate a simple calculator that

Task Write a C/C++ program to emulate a simple calculator that can calculate and display the results of performing one of the following arithmetic operations between two integer numbers (+, -, *, /). The Calculator progr ...

Command to mail only the process id of running java program

Command to mail only the process ID of running Java program test to the email address (single line Unix)

C programmingnbsphelp with a program positivec that include

***C PROGRAMMING***  Help with a program positive.c that include the following function: void extract(int *a, int n, int *positive, int *size);  The function should use pointer arithmetic, not subscripting. The extract f ...

Calculate the probability of selecting a random sample of

Calculate the probability of selecting a random sample of 225 observations with a sample proportion of 0.54 or greater, if the sample population has a population proportion of 0.50.

Suppose that 75 of all trucks undergoing a brake inspection

Suppose that 75% of all trucks undergoing a brake inspection at a certain inspection facility pass the inspection. Consider groups of 15 trucks and let X be the number of trucks in a group that have passed the inspection ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As