Java Programming
Part 1: Implement a superclass BankAccount that has the following fields and methods.
Fields:
String firstName
String lastName
Int accountID
double balance
Methods:
Constructor(): initialize balance to zero
deposit() – will accept a single value double parameter; the parameter value is added to the existing balance
withdrawal() – accepts a single value double dollar amount; the parameter value is subtracted from the existing balance
Setters and getters for firstName, lastName, and accountID
getBalance() getter to return the balance
accountSummary() – prints all account information
Part 2: Implement a CheckingAccount class that inherits from the BankAccount class.
Has an interest rate attribute
Allows overdraft withdrawals and charges a $30 free
Methods:
processWithdrawal() – will display a negative balance that includes $30 overdraft fee and denotes that a fee has been accessed
displayAccount() – should display all superclass attributes and provide additional interest rate
Ensure that your program has the two required classes and a test class. Submit screenshots of your program’s execution and output. Include all appropriate source code
in a zip file.
Previous answers to this question
This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.
Get The Answer Java Programming
Java Programming
Part 1: Implement a superclass BankAccount that has the following fields and methods.
Fields:
String firstName
String lastName
Int accountID
double balance
Methods:
Constructor(): initialize balance to zero
deposit() – will accept a single value double parameter; the parameter value is added to the existing balance
withdrawal() – accepts a single value double dollar amount; the parameter value is subtracted from the existing balance
Setters and getters for firstName, lastName, and accountID
getBalance() getter to return the balance
accountSummary() – prints all account information
Part 2: Implement a CheckingAccount class that inherits from the BankAccount class.
Has an interest rate attribute
Allows overdraft withdrawals and charges a $30 free
Methods:
processWithdrawal() – will display a negative balance that includes $30 overdraft fee and denotes that a fee has been accessed
displayAccount() – should display all superclass attributes and provide additional interest rate
Ensure that your program has the two required classes and a test class. Submit screenshots of your program’s execution and output. Include all appropriate source code
in a zip file.
Previous answers to this question
This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.
Get The Answer Leave a Reply
Java Programming
Java Programming
Write a recursive function that will test to see if the input String parameter belongs to the following format:
L={S:S is in the form of AnB3n, for some n >= 0} where n and 3n are powers.
Example:AABBBBBB contains ABBB
This class should have two methods:
public static boolean IsIn(String w){ //body}
public static void main(String[] args){ //test function
Previous answers to this question
This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.
Get The Answer