Question: java programming class SavingAccount_yourLastName has account number (String), balance (float) and interest rate (float) and methods to handle open account, check balance, deposit, withdraw, print

 java programming class SavingAccount_yourLastName has account number (String), balance (float) andinterest rate (float) and methods to handle open account, check balance, deposit,withdraw, print statement -and a driver class named BankApplication yourLastName The classsCheckingAccount yourLastName and SavingAccount yourLastName inherit from class Account yourLastName Method OPENACCOUNT The output should be as below: Account type: Checking Account AccountNumber: 1567794657 New account balance: 500.0 OR Account type Saving Account AccountNumber: 1567794657 New account balance: 500.0 Method CHECK BALANCE Account type: CheckingAccount Account Number: 1567794657 Current Balance: OR Account type Saving Account Account

java programming

class SavingAccount_yourLastName has account number (String), balance (float) and interest rate (float) and methods to handle open account, check balance, deposit, withdraw, print statement -and a driver class named BankApplication yourLastName The classs CheckingAccount yourLastName and SavingAccount yourLastName inherit from class Account yourLastName Method OPEN ACCOUNT The output should be as below: Account type: Checking Account Account Number: 1567794657 New account balance: 500.0 OR Account type Saving Account Account Number: 1567794657 New account balance: 500.0 Method CHECK BALANCE Account type: Checking Account Account Number: 1567794657 Current Balance: OR Account type Saving Account Account Number: 1567794657 500.0 Current Balance 500.0 Method DEPOSIT -Calculate the new balance then display output (if deposit amount is 200) Account type: Checking Account Account Number 1567794657 Deposit amount Current Balance OR Account type: Saving Account Account Number 1567794657 Deposit amount Current Balance 200.0 700.0 200.0 700.0 Method WITHDRAW Before allowing to withdraw, you need to check if invalid amount, display output to deny as below (For example current balance 700) Account type: Checking Account Account Number 1567794657 Withdraw amount Current Balance 690.0 - denied 700.0 OR Account type: Saving Account Account Number 1567794657 Withdraw amount: Current Balance 660.0 - denied 700.0 If amount to withdraw is valid then display the output Account type: Checking Account Account Number 1567794657 Withdraw amount Current Balance 300.0 400.0 OR Account type: Saving Account Account Number 1567794657 Withdraw amount: Current Balance 300.0 400.0 Method MONTHLY STATEMENT Account type: Checking Account Account Number 1567794657 Withdraw amount: Current Balance 300.0 400.0 OR Account type Saving Account Account Number: 1567794657 Withdraw amount: Current Balance: 300.0 400.0 DRIVER CLASS: provide the pseudo-code or flowchart then write the code for the BankService_yourLastName to provide the application of a bank service that provides the following menu: MAIN MENU 0. Open new account 1. Check current balance 2. Deposit 3. Withdraw 4. Print monthly statement 0. Exit Task 1: Open new account: -Read information of the new account from the keyboard. The account will be either checking account or saving account -The money to deposit should meet minimum amount $20 for checking account and minimum amount $50 for saving account. -if money amount to open account is less than minimum amount then display the message: "Invalid open account amount" -Create an object of class Account_yourLastName, for example object named account -display the sub menu to allow users select account type: 1. Checking Account 2. Saving Account -Read account type the apply Polymorphism, using the object of class Account_yourLastName account to create new Checking account or new Saving account If it is checking account, ask for service fee then create the Checking Account . If it is saving account, ask for interest rate then create the Saving Account -Ask for the money amount down to open account. -then display the output as by calling the method open account from class CheckingAccount_yourlastName or class SavingAccount_yourLastName FROM TASK2 TO TASK5, IF THE ACCOUNT IS NOT OPEN YET, DISPLAY MESSAGE "YOU HAVE TO OPEN ACCOUNT BEFORE SELECTING THIS TASK" THEN CALL THE TASK 1 TO FROM TASKZ TO TASRS, FTHE ACCOONTTS NOT OPEN YET,DISPLAY MESSAGE YOO HAVE TO OPEN ACCOUNT BEFORE SELECTING THIS TASK" THEN CALL THE TASK 1 TO OPEN NEW ACCOUNT Task 2: Check current balance -use the current account to call method from the data type classs to display message about the current balance Task 3: Deposit Ask how much users want to deposit then call the method deposit of class Account yourLastName Task 4: Withdraw -Ask how much users want to withdraw then call the method withdraw of class Account yourLastName Task 5: Print monthly statement -call the method print monthly statemet of class Account_yourLastName EXIT When users exit display the message box: "Thank you. The application is terminating." -UML of class Account, Checking account and Saving account, pseudo-code Compile success, qualified the requirement, write comment, the file name is the first comment line at top -class Saving account inherits from class Account: data member, open account, deposit, withdraw, print statement applies fee -class Checking account inherits from class Account: dat member, open account, deposit, withdraw, print statement add interest amount -check invalid amount to open account -check invalid amount to withdraw in both child classes Driver class -menu, handle menu to allow users to continue using until exit Create the object Apply polymorphism -open account, deposit, withdraw, print statement, exit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!