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, 22.06.2019 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
question
Computers and Technology, 26.06.2019 13:30
To communicate an idea using a network, you might a. watch an online video. b. listen to a compact disc. c.write and send a text message d. read news on the internet
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, 16.07.2020 18:01
question
Mathematics, 16.07.2020 18:01
Questions on the website: 13722359