CIS 355 Lab 4: Inheritance and Simple GUIJohnny EdTech
Type: Instant Download
Format: Zip file (Contains all documents needed for this assignment)
Version: Current 2013-14 (Click on tutorial image to view snapshot)
Frequently Asked Questions
What is included in the full course package? The entire course study guide includes the output file homework solution in notepad forCIS 355 Lab 4: Inheritance and Simple GUI(bachelors program)
Your tutorial will include these files:
- CIS355_Lab4.Zip (Notepad document)
What if I find a question is missing? Just shoot us an email or contact us via live chat. Our expert DBM tutors will add the answers to the study guide within 1 to 3 days. You will receive a free update to the study guide with the answers you need.
Will this help me with DBM 405 problems? Yes, this guide is designed to help students get through the CIS 355 Lab 4 exercise with ease.
CIS 355 Lab 4 Inheritance and Simple GUI :
Program files for each of the following three programs.
Step 1: InheritanceTest
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.
For the inheritancetest you will need a circle.java file for it to operate correctly
Best College Study.Com
CLICK HERE TO VIEW TUTORIAL
Step 2: Day GUI
Write a program called DayGui.java that creates a GUI having the following properties
Object Property Setting
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:
Step 3: OfficeAreaCalculator
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.
- 7 years ago
Purchase the answer to view it
- NOT RATED
Please note: This is only a word document with the codes and screen shots. Please re-code in your own program.
STEP 1: InheritanceTest (20 points)
Write a program called InheritanceTest.java to …7 years ago
- NOT RATED
Format:Zip file (Contains all documents needed for this assignment)
Version:Current 2013-14 (Click on tutorial image to view snapshot)
Frequently Asked Questions
…7 years ago