Computers and Technology
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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:00, jolleyrancher78
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
image
Computers and Technology, 24.06.2019 02:00, destinyd10189
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
Answers: 3
image
Computers and Technology, 24.06.2019 19:30, hermine40
Which phrase is the best definition of a pivottable a a table containing data that is organized horizontally b a table used to calculate financial pivot values c a tool used to summarize data d a table containing specific formatting
Answers: 1
image
Computers and Technology, 24.06.2019 20:00, diangeloortiz
Which element will you include to present numerical on a slide? a: graph b: text c: flowchart d: shapes
Answers: 1
Do you know the correct answer?
For this project consider a Bank that offers its customers two types of Accounts - A checking accoun...

Questions in other subjects: