Question: LAB2 PART 2 FOR THE DATA TYPYE CLASSES: -Add to the project of part 2, the class Account_yourLastName (from part1) -Add to the project of
LAB2 PART 2
FOR THE DATA TYPYE CLASSES: -Add to the project of part 2, the class Account_yourLastName (from part1) -Add to the project of part 2 two more classes: class CheckingAccount_yourLastName and class SavingAccount_yourLastName. These classes have the same data members and methods with class Account_yourLastName but each of them has more data members and each method has a little difference.
class CheckingAccount_yourLastName: add data member serviceFee (float), minumumAmount = 20.0
class SavingAccount_yourLastName: add data member interestRate(float), minimumAmount = 100.0
Task OPEN ACCOUNT
-if money amount to open account is less than minimum amount then display the message:Invalid open account amount. Account cannot be created
Otherwise display the message:
OPEN NEW ACCOUNT JAMES SMITH BANK
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Type: Checking Account
OR
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Type: Saving Account
Task CHECK CURENT BALANCE - Display the output:
CHECK CURRENT BALANCE JAMES SMITH BANK
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Type: Checking Account
OR CHECK CURRENT BALANCE JAMES SMITH BANK
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Type: Saving Account
Task DEPOSIT -If deposit amount is 200 to above account, display the output:
DEPOSIT JAMES SMITH BANK
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Deposit Amount: 200.0
New Balance: 700.0
Type: Checking Account
OR
DEPOSIT JAMES SMITH BANK
Account number: 1567794657
Name: Mary Lane
Balance: 500.0
Deposit Amount: 200.0
New Balance: 700.0
Type: Saving Account
Task WITHDRAW -If withdraw amount makes the new balance less than minimum amount then Display denied message:
WITHDRAW JAMES SMITH BANK
Account Number: 1567794657 Name: Mary Lane Balance: 700.00 Withdraw: 690.0- Denied New Balance: 700.0 Type: Checking Account
OR
WITHDRAW JAMES SMITH BANK
Account Number: 1567794657 Name: Mary Lane Balance: 700.00 Withdraw: 600.0- Denied New Balance: 700.0 Type: Saving Account
Task PRINT MONTHLY STATEMENT - dIsplay the following output:
MONTHLY STATEMENT JAMES SMITH BANK
Account Number: 1567794657 Name: Mary Lane Balance: 700.00
Service Fee: 10.0 New Balance: 690.0 Type: Checking Account
OR
MONTHLY STATEMENT JAMES SMITH BANK
Account Number: 1567794657 Name: Mary Lane Balance: 700.00
Interest Rate: 0.05%
Interest Amount: 0.35 New Balance: 700.35 Type: Saving Account
| FOR THE DRIVER CLASS (main) Display the menu as you did in part 1 However: For each task, you should handle for either Checking Accout or Saving account Remember: -get the output pictures of the task Monthly Statement, paste them after the pseudo code |
| ***This is part 1 instructions for reference LAB2 PART 1 FOR THE DATA TYPE CLASS: If you do not have UML of class Account_yourLastName, you should do that first Basesd on the UML, provide the code of data type class Account_yourLastName to hold the information of an account with account number (String), name (String), balance (double), with no-argument constructor, parameter constructor Also, define some methods to handle the tasks: open account, check current balance, deposit, withdraw, and print monthly statement. At the end of each task we have the output as below: Task OPEN ACCOUNT For example: account number is 1567794657, name Mary Lane, and start balance is 500 -display the output: OPEN NEW ACCOUNT JAMES SMITH BANK Account Number: 1567794657 Name:Mary Lane Balance:500.0 Task CHECK CURENT BALANCE - Display the output: CHECK CURRENT BALANCE JAMES SMITH BANK Account Number: 1567794657 Name:Mary Lane Current Balance:500.0 Task DEPOSIT -If deposit amount is 200 to above account, display the output: DEPOSIT JAMES SMITH BANK Account Number: 1567794657 Name:Mary Lane Balance:500.0 Deposit amount: 200.0 New Balance:700.0 Task WITHDRAW -If withdraw amount is 300, display the output: WITHDRAW JAMES SMITH BANK Account Number: 1567794657 Name:Mary Lane Balance:500.0 Withdraw: 300.00 New Balance: 400.0 Task PRINT MONTHLY STATEMENT - dIsplay the following output: MONTHLY STATEMENT JAMES SMITH BANK Account Number: 1567794657 Name:Mary Lane End Balance:700.0 FOR THE DRIVER CLASS: provide the pseudo-code or flowchart then write the code for the BankService_yourLastName to provide the application of a bank service. First, provide the following menu of tasks: BankService_Smith.java MAIN MENU JAMES SMITH BANK
0. Exit If users select other task before opening account then, the program will display message box:You should open account first Task 1: Open new account: -After reading all information of the account entered from the keyboard to create an account-Create the object of the class Account -then display the output by calling the method Create New Account Task 2: Check current balance -call the method Check Current Balance from data type class to display the output Task 3: Deposit -ask users for depoit amount, call the method deposit from data type class to display the output Task 4: Withdraw -ask users for withdraw amount, call the method withdraw of class Account_yourLastName Task 5: Print monthly statement -print the monthly statement EXIT When users exit display the message box: Thank you. The application is terminating.. Requirement: -Get the output of the task Monthly Statement then paste it in the file with pseudo-code -write the comment on each part in both classes COMPILE AND RUN THE PART1 TO GET THE OUTPUT |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
