The sum should be placed in a variable sum that has already been declared and initialized to 0. In addition, there is another variable,

C++

for loop<span< h1=””></span<>

style=”color:rgb(34,34,34);”> that computes the following sum: 5+10+15+20+…+485+490+495+500. The sum should be placed in a variable sum that has already been declared and initialized to 0. In addition, there is another variable, num that has also been declared. You must not use any other variables.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

There are LOTS of ways to write event handlers. For example:

There are LOTS of ways to write event handlers. For example:

1. Inner classes

2. Anonymous

Classes

3. Allowing JFrame to implement the EventListener

4. Providing another Classes

What are these?

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

CIS355A Week 3 LabEnhanced GUI Application using Additional Swing Components

CIS355A Week 3 LabEnhanced GUI Application using Additional Swing

Components

 

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 meal

JTextField for item price, order quantity, order total

JTextArea 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.

 

GRADING RUBRIC

Functional Requirements

·     All components on GUI created correctly

·     Item price updated properly with radio and checkbox selections

·     Items added to text area

·     Total price accumulates correctly

·     Clear for next item works correctly

·     Clear for new order works correctly

·     All prices displayed with two decimal places

·     File exit works correctly

·     Error messages for any invalid/missing user input using JOptionPane

40

Code style

5

Lab Report

10

TOTAL

55

 

CODE STYLE REQUIREMENTS

·     Include meaningful comments throughout your code.

·     Use meaningful names for variables.

·     Code must be properly indented.

·     Include a comment header at beginning of each file, example below.

/**************************************************** 

Program Name: ProgramName.java 

Programmer’s Name: Student Name 

Program Description: Describe here what this program will do 

***********************************************************/

 

DELIVERABLES

Submit as a SINGLE zip folder

·     All java files

·     Lab report1.png2.png3.png4.png

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

CIS355A Week 3 LabEnhanced GUI Application using Additional SwingComponentsOBJECTIVESCreate a GUI that uses JCheckBox, JRadioBuTon, J±extArea, and menus

Hello I need help with this Lab, thanks in advance for your fine work.

CIS355A Week 3 LabEnhanced GUI Application using Additional SwingComponentsOBJECTIVESCreate a GUI that uses JCheckBox, JRadioBuTon, J±extArea, and menus.Process mul²ple events.PROBLEM: BurgersRUs Point of Sale systemBurger Barn needs a point of sale applica²on. ±he products and prices are as follows.Burgers:single $3.50, double $4.75Add cheese:+ $.50Add bacon:+ $1.25Make it a meal:+ $4.00FUNCTIONAL REQUIREMENTSYou can code the GUI by hand or use NetBeans GUI builder interface.±he GUI should use JRadioBuTon to choose single or double burger.Single burgerDouble burgerIt should use JCheckBox for add ons.Add cheeseAdd baconMake it a mealJ±extField for item price, order quan²ty, order totalJ±extArea to display the receiptCreate a menu with the following op²ons.FileOrderExitAdd to OrderClear for next itemNew OrderAs the user selects items, the item price should be calculated and updated accordingly.Note that quan²ty should default to 1. ±he user can change if needed.Once choices are made and quan²ty is entered, process the order using the menu op²ons.Order—Add to OrderDisplays the choice and price in each text area.Note that mul²ple items can accumulate in a single orderUpdates the order totalOrder—Clear for next itemClears the checkboxes. Note that quan²ty should default to 1Order—New OrderClears the GUI and totals for a new orderFile—ExitExits the program.Use System.exit(0) commad.CIS355A Week 3 Lab Instruc²onsPage 1
Background image of page 1
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"