CIS355 Lab 3 – Inheritence Test and Greeting Applet – New Version – Guaranteed 100% score

Lab Price = $25
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart


Problem Statement
Here are the lab deliverables:

Program files for each of the following programs
InheritanceTest; and
Greeting.
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:
The programs must have the same names as the assignment title.
Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
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.
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_Week3, and this zip folder will contain all the weekly programming assignments.

And here are the 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
Attributes:
String Account Name
Integer Account ID
Double balance
Methods:
constructor: initialize balance to zero
processDeposit ( ) – accepts a single double parameter containing the deposit amount. Updates the balance by adding the deposit amount to the balance.
processWithdrawal ( ) – accepts a single double parameter containing the withdrawal amount. Updates the balance by subtracting the withdrawal amount for the balance. Note: For now do not worry about negative balances.
sets and gets for name, account ID
getBalance to return the balance
displayAccount – this method prints all account information, here is an example:
Account: 2345
Name: John Smith
Balance: $120.75
Attributes:
String Account Name
Integer Account ID
Double balance
TEST and make sure all methods of the Account class work before continuing!
The CheckingAcct class is a derived class of the Account class.
It has no additional attributes
Overdraft withdrawls are allowed but the user is charged a $10 overdraft fee
No interest is earned
Methods:
processWithdrawl() – needs to be overridden so that if the withdrawl causes insufficient funds, subtract $10 overdraft fee and display a message “overdraft fee charged”.
displayAccount – this method prints all account information, here is an example:
Account type: Checking
Account: 2345
Name: John Smith
Balance: $120.75
The SavingsAcct class is a derived class of the Account class.
Overdraft withdrawls are not allowed
Interest is earned
No additional attributes
Methods:
processWithdrawl() – needs to be overridden so that if the withdrawl causes insufficient funds, a message “insufficient funds” is displayed an no withdrawl is made.
calcInterest ( ) – If the account balance is greater than or equal to 5000.00 an interest rate of 4% or .04 is applied to increase the balance. If the balance is greater than or equal to 3000.00 an interest rate of 3% or .03 is applied to increase the balance. Otherwise use an interest rate of 2%. Return the interest amount. This method should be called by displayAccount to show interest earned and add it to the balance.
displayAccount – this method prints all account information, here is an example:
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:
Make an initial deposit in each account (prompt for amount to deposit)
Display the balance (to verify)
Make a withdrawl with sufficient funds (prompt for amount to withdraw)
Display the balance (to verify)
Make a withdrawl with insufficient funds (prompt for amount to withdraw)
Display the final account information using displayAccount
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
Greeting
Points
Description
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
a Label object that has the text “Please enter your name;”
a Textfield object of size 20;
a Button object with the text “GREET;” and
a Label object with the text “Result goes here.” This label will change to “Hello,” followed by the entered name.
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.
Greeting
Points
Description
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

Thank you.

Relevant Material
Screenshots
Greeting

Output

Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Payment Details

 

Lab Price = $25
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart

Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.


Leave a Reply