This question's due date has already passed. You may post a tutorial, but there's no guarantee that the original asker will purchase the tutorial. But other people might!

Question

$10.00 Java help...

Asked by :
kodi88
kodi88
Rating :No Rating
Questions Asked: 45
Tutorials Posted: 0
 
 
Q:
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.

i L A B  S T E P S

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 created

4

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

Correct output is displayed

4

Test class produces correct output showing all values 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

JFrame

Name
Caption
Layout

mainFrame
Messages
FlowLayout

JButton

Name
Caption
Mnemonic

cmdGood
Good
G

JButton

Name
Caption
Mnemonic

cmdBad
Bad
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

cmdGood JButton created along with the event handler

1.5

The Good button shows on the application and when pressed the appropriate message displays on a separate window

cmdBad JButton created along with the event handler

1.5

The Bad button shows on the application and when pressed the appropriate message displays on a separate window

Application contains required changes and displays the correct output

3

Application appears as one of the tabs in a tabbed application and buttons and panel are in different 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
 

Available Tutorials to this Question
 
$10.00
Inheritance Test
  • This tutorial hasn't been purchased yet.
  • Posted on Aug 10, 2012 at 10:42:03PM
Posted by :
sraiki
sraiki
Rating :No Rating
Questions Asked: 1
Tutorials Posted: 51,
Earned: $34.80
 
A:
Preview: ... le button event handler             ButtonsHandler bhandler = new ButtonsHandler(); // instantiates a handler             cmdGood.addActionListener(bhandler); // register the handler             cmdBad.addActionListener(bhandler); // register the handler         mainFrame.show();            }              // inner class for the button event handler            class ButtonsHandler implements ActionListener            {              public void actionPerformed(ActionEvent e)              {                if (e.getSource() == cmdGood)                  JOptionPane.showMessageDialog(null, "Today is a very good day!",                         "Event Handler Message",JOptionPane.INFORMATION_MESSAGE);                else if (e.getSource() == cmdBad)                  JOptionPane.showMessageDialog(null, "I'm having a bad day today!",                          "Event Handler Message",JOptionPane.INFORMATION_MESSAGE);               }             } // end of inner class               public static void main(String args[])             {                 DayGui app;  // declare a DayGui variable                      app = new DayGui(); // instantiate a GUI object             }         Office Area Calculator   import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.FocusEvent; import java.awt.event.FocusListener;   import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField;   public class OfficeAr ...

The full tutorial is about 661 words long plus attachments.

attachmentlogo

Attachments:
inheritance test, daygui and office area calculator.doc (51K) (Preview)
 
$5.00
Java programs with commented code, class files and screenshots
  • This tutorial was purchased 3 times and rated No Rating by students like you.
  • Posted on Aug 10, 2012 at 11:26:16PM
Posted by :
muhoilya
muhoilya
Rating (281):A+
Questions Asked: 0
Tutorials Posted: 399,
Earned: $10,656.49
 
A:
Preview: ... % correct program with money back g ...

The full tutorial is about 27 words long plus attachments.

attachmentlogo

Attachments:
CIS355A_YourLastName_iLab_Week4.zip (2K) 

 OfficeAreaCalculator.java
 DayGUI.java
 InheritanceTest.java
 ]

classfiles.zip (6K) 

 PointEx.class
 Square.class
 DayGUI$1.class
 DayGUI$ButtonHandler.class
 DayGUI.class
 InheritanceTest.class
 OfficeAreaCalculator$1.class
 OfficeAreaCalculator$2.class
 OfficeAreaCalculator$3.class
 OfficeAreaCalculator.class
 ]

screenshot.zip (74K) 

 day.jpg
 InheritanceTest.jpg
 office.jpg
 ]

 
$5.00
A++ solution with screenshot | 3 Java program
  • This tutorial was purchased 4 times and rated No Rating by students like you.
  • Posted on Aug. 11, 2012 at 02:44:09AM
Posted by :
adinh3290
adinh3290
Rating (315):A-
Questions Asked: 3
Tutorials Posted: 1181,
Earned: $14,487.33
 
A:
Preview: ... ith scree ...

The full tutorial is about 8 words long plus attachments.

attachmentlogo

Attachments:
InheritanceTest_GUI_ScreenShot.jpg (31K)
DayGui_ScreenShot.jpg (20K)
OfficeAreaCalculator_ScreenShot.jpg (20K)
Program.zip (3K) 

 DayGui.java
 InheritanceTest.java
 OfficeAreaCalculator.java
 ]

 
$25.00
All the programs According to requirements with snapshots, class files and adding program 2 and 3 to JTabbedPane.A++ Sol
  • This tutorial was purchased 1 time and rated No Rating by students like you.
  • Posted on Aug. 12, 2012 at 11:25:18AM
Posted by :
optimalsolutions
 
A:
Preview: ... s files and adding progr ...

The full tutorial is about 19 words long plus attachments.

attachmentlogo

Attachments:
Programs.zip (5K) 

 Programs/DayGui.java
 Programs/InheritanceTest.java
 Programs/JTabbedPaneDemo.java
 Programs/OfficeAreaCalculator.java
 ]

Snapshots.zip (487K) 

 Snapshots/DayGui_Snapshot.jpg
 Snapshots/InheritanceTest_Snapshot.jpg
 Snapshots/OfficeAreaCalculator_Snapshot.jpg
 Snapshots/TabbedPaneDemo_Calculator.jpg
 Snapshots/TabbedPaneDemo_DayGui.jpg
 ]

Class files.zip (10K) 

 Class files/Cube.class
 Class files/DayGui.class
 Class files/InheritanceTest.class
 Class files/JTabbedPaneDemo.class
 Class files/OfficeAreaCalculator.class
 Class files/Point.class
 Class files/Square.class
 ]

 
$10.00
correct A++ solution !!!
  • This tutorial hasn't been purchased yet.
  • Posted on Feb. 24, 2013 at 07:50:10AM
Posted by :
soleil91
soleil91
Rating (40):A
Questions Asked: 1
Tutorials Posted: 320,
Earned: $3,055.90
 
A:
Preview: ... ect solution ...

The full tutorial is about 11 words long plus attachments.
 
$8.00
Java iLab 4 of 6: InheritanceTest DayGui OfficeAreaCalculator - an Original and A++ Work !!!
  • This tutorial hasn't been purchased yet.
  • Posted on Apr 16, 2013 at 5:08:46PM
Posted by :
special_one
special_one
Rating (221):A
Questions Asked: 0
Tutorials Posted: 314,
Earned: $9,233.71
 
A:
Preview: ... is 100% correct solution for ...

The full tutorial is about 25 words long plus attachments.
 
$15.00
CIS355A CIS 355A cis355A Week 4 iLab Inheritence,DayGui and Office Area Calculator
  • This tutorial hasn't been purchased yet.
  • Posted on May 30, 2013 at 10:31:33PM
Posted by :
AH_SOLUTION
AH_SOLUTION
Rating (19):A+
Questions Asked: 0
Tutorials Posted: 236,
Earned: $1,202.86
 
A:
Preview: ... lutions ...

The full tutorial is about 5 words long plus attachments.

attachmentlogo

Attachments:
Inheritence.zip (2K) 

 Inheritence/Cube.java
 Inheritence/InheritanceTest.java
 Inheritence/Point.java
 Inheritence/Square.java
 ]

Version_1.zip (2K) 

 Version_1/DayGui.java
 Version_1/OfficeAreaCalculator.java
 ]

DayGUI&OfficeAreaCalculator.zip (1K) 

 Version_2/TabbedPane.java
 ]

Screenshots.zip (267K) 

 Screenshots/DayGUI.jpg
 Screenshots/DayGUI1 (2).jpg
 Screenshots/DayGUI1.jpg
 Screenshots/DayGUI2.jpg
 Screenshots/DayGUI3.jpg
 Screenshots/Inheritence.jpg
 Screenshots/OfficeAreaCalculator.jpg
 Screenshots/Untitled3.jpg
 ]