subject
Computers and Technology, 24.06.2020 23:01 sana20

For this project consider a Bank that offers its customers two types of Accounts - A checking account and a savings account. The Bank Account is a parent class that holds the account number and a minimum balance that all bank accounts need to have while creating an account in this bank. reate a UML diagram for the design of this project. BankAccount class should include the following items:

A variable that stores the account number.
A variable that stores the balance. The balance need not be an integer number.
An overloaded constructor that takes the balance as a parameter. The constructor must initialize the account number in some randomized way.
Getter methods for the balance and account number.
A method named deposit()that takes an amount as a parameter and deposits it in the account.
A method named withdraw()that takes an amount as a parameter and withdraws it from the account.

The Bank allows customers to have a choice to two types of accounts: - A Savings Account and a Checking Account. A Checking Account has no interest. And has a certain number of free transactions after which there is a small fee. A Saving Account earns compound interest monthly. Both accounts have to a getBalance method and checks to see that the minimum balance is maintained. All accounts have access to the deposit and withdraw methods.

CheckingAccount class should include the following items:

A constructor that calls to the parent constructor in its method body.
A polymorphic method that modifies the balance by withdrawing the desired amount from the account. The method has to keep track of the number of withdrawals and apply the extra fee. The balance in the account should be returned when its getter method is called.

SavingsAccount class should include the following items:

A variable that stores the rate of interest. Pick a rate of interest of your choice.
A variable that stores the interest calculated.
A constructor that calls the parent constructor.
Getters and setters for the interest. For the setter method you must take in as a parameter the number of months you want to calculate interest for and look up the formula for calculating interest based on the rate of interest and number of months.
A polymorphic getter method for the the balance that takes into account the interest. The program gives a menu of options to the user to create an account of type checking or savings, deposit money, withdraw money and check balance.

DriverBank test program contains the following items:

A menu with options for exiting the program, creating a checking account, creating a savings account, withdrawing, depositing, and checking balance.
Keeps track of whether an account was previously created and makes sure multiple accounts are not being made. (Hint: use a boolean)
All Input / Output statements should be in the driver program only.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
You know the right answer?
For this project consider a Bank that offers its customers two types of Accounts - A checking accoun...
Questions
question
Mathematics, 26.06.2020 22:01
Questions on the website: 13722367