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 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
You know the right answer?
For this project consider a Bank that offers its customers two types of Accounts - A checking accoun...
Questions
question
History, 27.05.2020 08:00
question
History, 27.05.2020 08:00
question
English, 27.05.2020 08:00
question
Geography, 27.05.2020 08:00
question
Mathematics, 27.05.2020 08:00
question
Advanced Placement (AP), 27.05.2020 08:00
Questions on the website: 13722367