Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please provide solution with comments java programming Account type Saving Account Account Number: 1567794657 Deposit amount: Current Balance: 200.0 700.0 od WITHDRAW re allowing to

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

please provide solution with comments

java programming

Account type Saving Account Account Number: 1567794657 Deposit amount: Current Balance: 200.0 700.0 od WITHDRAW re allowing to withdraw, you need to check if invalid amount, dis 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 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 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." Method OPEN ACCOUNT The output should be as below Account type: Checking Account Account Number 1567794657 New account balance: OR Account type: Saving Account Account Number 1567794657 New account balance: 500.0 500.0 Method CHECK BALANCE Account type: Checking Account Account Number 1567794657 Current Balance OR Account type: Saving Account Account Number 1567794657 Current Balance 500.0 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 200.0 700.0 Saving Account Account type Saving Account Account Number: 1567794657 Deposit amount: Current Balance: 200.0 700.0 od WITHDRAW re allowing to withdraw, you need to check if invalid amount, dis as below (For example current balance 700) Account type: Checking Account Account Number: 1567794657 Withdraw amount: Current Balance: 690.0 denied 700.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

T Sql Fundamentals

Authors: Itzik Ben Gan

4th Edition

0138102104, 978-0138102104

More Books

Students also viewed these Databases questions

Question

RP-7 What is natural selection?

Answered: 1 week ago