SlideShare uma empresa Scribd logo
1 de 5
CIS/355 iLab 4 of 6



iLab 4 of 6: Inheritance and Simple GUI
 iLAB OVERVIEW

Scenario and Summary


In this lab you will create one project that uses inheritance and two simple Graphical User Interface (GUI)
programs.




Deliverables

Program files for each of the following three programs

1.   InheritanceTest

2.   DayGui

3.   OfficeAreaCalculator

At the beginning of ALL your programs, put a comment box that includes the program name, your
name, and a brief description of the program.

Example:

/***********************************************************************
Program Name: ProgramName.java
Programmer's Name: Student Name
Program Description: Describe here what this program will do
***********************************************************************/

How to submit your assignment:

1.   The programs MUST have the same names as the assignment title.

2.  Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence
of success.

3.   In addition to the program source code files and byte code files, put all your program source code
files and screen shots of your program output files into a Word document.

4.   You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send
subfolders within your zipped folder. Place ALL of the .java and .class files for the week into the one
zipped folder. The zip folder should be named: CIS355A_YourLastName_iLab_Week4, and this zip folder
will contain all the weekly programming assignments.
iLAB STEPS



STEP 1: InheritanceTest (20 points)

Write a program called InheritanceTest.java to support an inheritance hierarchy for class Point-
Square-Cube. Use Point as the superclass of the hierarchy. Specify the instance variables and methods
for each class. The private variable of Point should be the x-y coordinates. The private data of Square
should be the sideLength. The private data of Cube should be depth. Each class must provide applicable
accessor, mutator, and toString() methods for manipulating private variables of each corresponding class.
In addition, the Square class must provide the area() and perimeter() methods. The Cube must provide
the area() and volume() methods.

Write a program that instantiates objects of your classes, ask the user to enter the value for x, y, and
sideLength, test all instance methods and outputs of each object’s perimeter, area, and volume when
appropriate.

Grading Rubric

     InheritanceTest           Points                              Description

Standard header included          1     Must contain program's name, student name, and description of
                                        the program

Program compiles                  1     Program does not have any error

Program executes                  1     Program runs without any error

Point class created               3     Class contains accessor, mutator, and toString methods

Square class created              3     Class contains accessor, mutator, toString, perimeter, and area
                                        methods

Cube class created                3     Class contains accessor, mutator, toString, area, and volume
                                        methods

InheritanceTest class             4     Test class asks user for input of x, y, and sideLength and tests all
created                                 instance methods

Correct output is                 4     Test class produces correct output showing all values
displayed                               corresponding to each object

                    Subtotal      20




STEP 2: DayGui (10 points)

Write a program called DayGui.java that creates a GUI having the following properties

                      Object                     Property                     Setting
Name                         mainFrame
                     JFrame             Caption                      Messages
                                        Layout                       FlowLayout

                                        Name                         cmdGood
                     JButton            Caption                      Good
                                        Mnemonic                     G

                                        Name                         cmdBad
                     JButton            Caption                      Bad
                                        Mnemonic                     B

Add individual event handlers to your program so that when a user clicks the Good button, the message
"Today is a good day!" appears in a dialog box, and when the Bad button is clicked, the message "I'm
having a bad day today!" is displayed. The following tutorial shows you much of the code solution. Feel
free to use the tutorial, but make changes so that you are not simply copying the tutorial code for your
entire solution. To make this different from the tutorial, change the colors of the buttons and panel. Also,
add this application to a tabbed pane along with the program you will complete in the next step, Step 3.
The following tutorials will likely be useful as you work to complete this step:

      JTabbedPane
      Tutorial to Write Your First GUI
Grading Rubric

                 DayGui                      Points                       Description

Standard header included                        1     Must contain program’s name, student name, and
                                                      description of the program

Program compiles                                1     Program does not have any error

Program executes                                1     Program runs without any error

DayGui class created                            1     Class DayGui was created which contains the
                                                      required properties

cmdGoodJButton created along with              1.5    The Good button shows on the application and when
the event handler                                     pressed the appropriate message displays on a
                                                      separate window

cmdBadJButton created along with               1.5    The Bad button shows on the application and when
the event handler                                     pressed the appropriate message displays on a
                                                      separate window

Application contains required                   3     Application appears as one of the tabs in a tabbed
changes and displays the correct                      application and buttons and panel are in different
output                                                colors

                                  Subtotal     10
STEP 3: OfficeAreaCalculator (10 points)

Write a program called OfficeAreaCalculator.java that displays the following prompts using two label
components

       Enter the length of the office:
       Enter the width of the office:
Have your program accept the user input in two text fields. When a button is clicked, your program
should calculate the area of the office and display the area in a text field with a label of Area. This display
should be cleared whenever the input text fields receive the focus. A second button should be provided to
terminate the application (Exit button).

The following tutorial shows you much of the code solution. Feel free to use the tutorial, but make
changes so that you are not simply copying the tutorial code for your entire solution. To make this
different from the tutorial, change the colors of the panel. Also, add this application to the same tabbed
pane (see the JTabbedPane tutorial) as the application you built in Step 2, the DayGui application.

      Office Area Calculator Tutorial
Grading Rubric

         OfficeAreaCalculator                Points                        Description

Standard header included                        1     Must contain program’s name, student name, and
                                                      description of the program

Program compiles                                1     Program does not have any error

Program executes                                1     Program runs without any error

Created Length label and Length                 1     The Length label and input textbox show on the
input textbox field                                   application and users can enter valid numeric value in
                                                      the textbox

Created Width label and Width input             1     The Width label and input textbox show on the
textbox field                                         application and users can enter valid numeric value in
                                                      the textbox

Created Area label and Area input               1     The Area label and input textbox show on the
textbox field                                         application and the area value displays in the textbox
                                                      when the Calculate button is pressed

Created Calculate button with the               1     The Calculate button calculates the area given the
appropriate handler                                   length and width of the office

Created Exit button with the                    1     The Exit button exits the application and terminates
appropriate handler                                   the program

Application contains required                   2     Application appears as one of the tabs in a tabbed
changes and displays the correct                      application and panel is in a different color
output
Subtotal   10




CLICK HERE TO GET THE SOLUTION !!!!!!!!!

Mais conteúdo relacionado

Mais procurados

Mfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-stepMfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-step
namtranvanpt
 
Unit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programmingUnit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programming
Abha Damani
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
simran153
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
sanket1996
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
bloodyedge03
 

Mais procurados (18)

Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic Programming
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Mfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-stepMfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-step
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
Visual programming
Visual programmingVisual programming
Visual programming
 
Unit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programmingUnit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programming
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Java Programming Assignment
Java Programming AssignmentJava Programming Assignment
Java Programming Assignment
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Mobile Application Development,J2ME,UNIT-4-JNTU
Mobile Application Development,J2ME,UNIT-4-JNTUMobile Application Development,J2ME,UNIT-4-JNTU
Mobile Application Development,J2ME,UNIT-4-JNTU
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
 
Controls events
Controls eventsControls events
Controls events
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Visual basic
Visual basicVisual basic
Visual basic
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
 

Destaque

Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
giovani coache bravo
 

Destaque (6)

Up meier marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
Up meier   marcelo astuto (21) 7832-4132 www.marceloastuto.com.brUp meier   marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
Up meier marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
 
Τα παιδιά της Αφρικής
Τα παιδιά της ΑφρικήςΤα παιδιά της Αφρικής
Τα παιδιά της Αφρικής
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
 
344.full
344.full344.full
344.full
 
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6
 

Semelhante a CIS/355 ilab 4 of 6

Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
helpido9
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
comp274
 
Spf chapter 03 WinForm
Spf chapter 03 WinFormSpf chapter 03 WinForm
Spf chapter 03 WinForm
Hock Leng PUAH
 
Gui builder
Gui builderGui builder
Gui builder
learnt
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6
ashhadiqbal
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
melbruce90096
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
dhi her
 
Refinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami OlusegunRefinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami Olusegun
Engr. Adefami Segun, MNSE
 
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
emelyvalg9
 
Vbtutorial
VbtutorialVbtutorial
Vbtutorial
dhi her
 

Semelhante a CIS/355 ilab 4 of 6 (20)

Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
 
Spf chapter 03 WinForm
Spf chapter 03 WinFormSpf chapter 03 WinForm
Spf chapter 03 WinForm
 
Gui builder
Gui builderGui builder
Gui builder
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Introduction
IntroductionIntroduction
Introduction
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Refinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami OlusegunRefinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami Olusegun
 
Visual basic
Visual basicVisual basic
Visual basic
 
OOP Programs
OOP ProgramsOOP Programs
OOP Programs
 
Vb%20 tutorial
Vb%20 tutorialVb%20 tutorial
Vb%20 tutorial
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
 
Book management system
Book management systemBook management system
Book management system
 
Vbtutorial
VbtutorialVbtutorial
Vbtutorial
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

CIS/355 ilab 4 of 6

  • 1. CIS/355 iLab 4 of 6 iLab 4 of 6: Inheritance and Simple GUI iLAB OVERVIEW Scenario and Summary In this lab you will create one project that uses inheritance and two simple Graphical User Interface (GUI) programs. Deliverables Program files for each of the following three programs 1. InheritanceTest 2. DayGui 3. OfficeAreaCalculator At the beginning of ALL your programs, put a comment box that includes the program name, your name, and a brief description of the program. Example: /*********************************************************************** Program Name: ProgramName.java Programmer's Name: Student Name Program Description: Describe here what this program will do ***********************************************************************/ How to submit your assignment: 1. The programs MUST have the same names as the assignment title. 2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success. 3. In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document. 4. You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place ALL of the .java and .class files for the week into the one zipped folder. The zip folder should be named: CIS355A_YourLastName_iLab_Week4, and this zip folder will contain all the weekly programming assignments.
  • 2. iLAB STEPS STEP 1: InheritanceTest (20 points) Write a program called InheritanceTest.java to support an inheritance hierarchy for class Point- Square-Cube. Use Point as the superclass of the hierarchy. Specify the instance variables and methods for each class. The private variable of Point should be the x-y coordinates. The private data of Square should be the sideLength. The private data of Cube should be depth. Each class must provide applicable accessor, mutator, and toString() methods for manipulating private variables of each corresponding class. In addition, the Square class must provide the area() and perimeter() methods. The Cube must provide the area() and volume() methods. Write a program that instantiates objects of your classes, ask the user to enter the value for x, y, and sideLength, test all instance methods and outputs of each object’s perimeter, area, and volume when appropriate. Grading Rubric InheritanceTest Points Description Standard header included 1 Must contain program's name, student name, and description of the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error Point class created 3 Class contains accessor, mutator, and toString methods Square class created 3 Class contains accessor, mutator, toString, perimeter, and area methods Cube class created 3 Class contains accessor, mutator, toString, area, and volume methods InheritanceTest class 4 Test class asks user for input of x, y, and sideLength and tests all created instance methods Correct output is 4 Test class produces correct output showing all values displayed corresponding to each object Subtotal 20 STEP 2: DayGui (10 points) Write a program called DayGui.java that creates a GUI having the following properties Object Property Setting
  • 3. Name mainFrame JFrame Caption Messages Layout FlowLayout Name cmdGood JButton Caption Good Mnemonic G Name cmdBad JButton Caption Bad Mnemonic B Add individual event handlers to your program so that when a user clicks the Good button, the message "Today is a good day!" appears in a dialog box, and when the Bad button is clicked, the message "I'm having a bad day today!" is displayed. The following tutorial shows you much of the code solution. Feel free to use the tutorial, but make changes so that you are not simply copying the tutorial code for your entire solution. To make this different from the tutorial, change the colors of the buttons and panel. Also, add this application to a tabbed pane along with the program you will complete in the next step, Step 3. The following tutorials will likely be useful as you work to complete this step: JTabbedPane Tutorial to Write Your First GUI Grading Rubric DayGui Points Description Standard header included 1 Must contain program’s name, student name, and description of the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error DayGui class created 1 Class DayGui was created which contains the required properties cmdGoodJButton created along with 1.5 The Good button shows on the application and when the event handler pressed the appropriate message displays on a separate window cmdBadJButton created along with 1.5 The Bad button shows on the application and when the event handler pressed the appropriate message displays on a separate window Application contains required 3 Application appears as one of the tabs in a tabbed changes and displays the correct application and buttons and panel are in different output colors Subtotal 10
  • 4. STEP 3: OfficeAreaCalculator (10 points) Write a program called OfficeAreaCalculator.java that displays the following prompts using two label components Enter the length of the office: Enter the width of the office: Have your program accept the user input in two text fields. When a button is clicked, your program should calculate the area of the office and display the area in a text field with a label of Area. This display should be cleared whenever the input text fields receive the focus. A second button should be provided to terminate the application (Exit button). The following tutorial shows you much of the code solution. Feel free to use the tutorial, but make changes so that you are not simply copying the tutorial code for your entire solution. To make this different from the tutorial, change the colors of the panel. Also, add this application to the same tabbed pane (see the JTabbedPane tutorial) as the application you built in Step 2, the DayGui application. Office Area Calculator Tutorial Grading Rubric OfficeAreaCalculator Points Description Standard header included 1 Must contain program’s name, student name, and description of the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error Created Length label and Length 1 The Length label and input textbox show on the input textbox field application and users can enter valid numeric value in the textbox Created Width label and Width input 1 The Width label and input textbox show on the textbox field application and users can enter valid numeric value in the textbox Created Area label and Area input 1 The Area label and input textbox show on the textbox field application and the area value displays in the textbox when the Calculate button is pressed Created Calculate button with the 1 The Calculate button calculates the area given the appropriate handler length and width of the office Created Exit button with the 1 The Exit button exits the application and terminates appropriate handler the program Application contains required 2 Application appears as one of the tabs in a tabbed changes and displays the correct application and panel is in a different color output
  • 5. Subtotal 10 CLICK HERE TO GET THE SOLUTION !!!!!!!!!