Question: add a data type class Account_yourLastName and a driver class BankService_yourLastName.....in JAVA DATA TYPE CLASS: Provide UML and the code of data type class Account_yourLastName

add a data type class Account_yourLastName and a driver class BankService_yourLastName.....in JAVA

DATA TYPE CLASS: Provide UML and the code of data type class Account_yourLastName to hold the information of an account with account number(String), customer 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

OPEN ACCOUNT-display the output: (for example with account last name, account first name, account number is 1567794657, and balance is 500)

Account Name: customer name

Account Number: 1567794657

New Account balance: 500.0

CHECK BALANCE

Display the output as belows: (for example current balance is 500)

Account Name: customer name

Account Number: 1567794657

Current Balance: 500.0

DEPOSIT-Calculate the new balnce then display output (if deposit amount is 200)

Account Name:

Account Number: 1567794657

Deposit amount: 200.0

New Balance: 700.0

WITHDRAW-Calculate new balance then display the message(for example withdraw amount is 300)

Account Name:

Account Number: 1567794657

Withdraw amount: 300.0

New Balance: 400.0

PRINT MONTHLY STATEMENT-dIsplay the following output:

Account Name:

Account Number: 1567794657

End Balance: 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 provide the following menu of tasks:

MAIN MENU

1.Open new account

2.Check current balance

3.Deposit

4.Withdraw

5.Print monthly statement

0.Exit

Task 1: Open new account:

- After reading all information of customer entered from the keyboard to create an account

-Ask for the money amount down to open account.

-then display the output as by calling the method open account from class

Account_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 statement of class Account_yourLastName

EXIT

When users exit display the message box:

Thank you. The application is terminating..

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!