The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi, I need help with two coding problems.I have attached a zip file with have so far for the two codes. Below is a copy of the format to follow when creating the two programs.
iLab 3 of 6: Inheritance and Applets (40 points)
11:42 PM
MT
02/12/2016
iLab Overview
Scenario/Summary
In this lab, you will create one project that uses inheritance and one simple Applet.
Note!Software Citation Requirements
This course uses open-source software which must be cited when used for any student work. Citation requirements are on the Open Source Applications page.
Please review the installation instruction files to complete your assignment
Deliverables
NOTE
Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions.
(See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)
Program files for each of the following programs
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:
Required SoftwareEclipse
Access the software at https://lab.devry.edu.
Steps: 1 and 2
Lab Steps
Step 1: InheritanceTest
Implement an inheritance hierarchy based on the following specifications for Account class, Checking Account class, and Savings Account class:
Account class
Account: 2345
Name: John Smith
Balance: $120.75
TEST and make sure all methods of the Account class work before continuing!
The CheckingAcct class is a derived class of the Account class.
Account type: Checking
Account: 2345
Name: John Smith
Balance: $120.75
The SavingsAcct class is a derived class of the Account class.
Account type: Savings
Account: 2345
Name: John Smith
Interest earned: $5.02
Balance: $250.75
Main:
To demonstrate polymorphism, create an arrayList of Account type that can handle Checking and Savings accounts (thiis is the Bank). Prompt for name, account number (or assign account number in main) and add at least one checking object and one savings object to the bank array.
Now use a loop to process all accounts USING THE Bank array:
See example output below:
Creating a checking account, enter name: John Smith
Your checking account number is 1000
Creating a savings account, enter name: Sue Johnson
Your savings account number is 1001
Processing account: 1000
Amount to deposit: 50
Balance is 50.00
Amount to withdraw: 25
Balance is 25.00
Amount to withdraw: 30
$10 Overdraft fee charged!
Balance is -15.00
Account type: Checking
Account: 1000
Name: John Smith
Balance: $-15.00
Processing account: 1001
Amount to deposit: 500
Balance is 500.00
Amount to withdraw: 150
Balance is 350.00
Amount to withdraw: 500
Insufficient funds!
Balance is 350.00
Account type: Savings
Account: 1001
Name: Sue Johnson
Interest earned: $7.00
Balance: $357.00
|
Standard header included |
1 |
Must contain program's name, student name, and description of the program |
|
Lab Report |
4 |
Documents your design process and testing |
|
Created the Account class and all methods |
5 |
The Account class is created with the required attributes and methods. |
|
Created the CheckingAccount,SavingsAccountclasses and all methods |
10 |
The CheckingAccount and Savings Account classes are created with the required attributes and methods. |
|
Created arrayList in main and demonstrated polymorphism |
5 |
The main program is created and objects of each account class are created. The required methods are called and the output displayed. |
| Subtotal |
20 |
Step 2: Greeting
Create an applet of size 500 by 500. The background color of the applet should be yellow. The four components to be included are
For this lab, you will need the actionPerformed method to provide event handling for the button.
The getText() method will be needed to get the string from the TextField.
The setText() method will be needed to change the text of the second Label.
Test your applet by entering your full name and confirming that the result label has changed.
Test your applet by entering your full name and confirming that the result label has changed.
|
Standard header included |
1 |
Must contain program’s name, student name, and description of the program |
|
Lab Report |
2 |
Program does not have any error |
|
Created GUI with instructions label and Name input textbox field, Result label |
3 |
The Instructions label and Name input textbox show on the applet and users can enter a value in the textbox. The Result label shows on the applet. |
|
Created Greet button with the appropriate handler |
3 |
The Greet button shows on the applet and has an actionListener |
|
Applet displays the correct output |
2 |
Applet appears and displays Hello, full name when Greet button is clicked |
| Subtotal |
10 |
Attachments: