subject

Bank accounts

look at the account class account. java and write a main method in a different class to briefly experiment with some instances of the account class.

β€’ using the account class as a base class, write two derived classes called savingsaccount and checkingaccount. a savingsaccount object, in addition to the attributes of an account object, should have an interest variable and a method which adds interest to the account. a checkingaccount object, in addition to the attributes of an account object, should have an overdraft limit variable. ensure that you have overridden methods of the account class as necessary in both derived classes.

β€’ now create a bank class, an object of which contains an array of account objects. accounts in the array could be instances of the account class, the savingsaccount class, or the checkingaccount class. create some test accounts (some of each type).

β€’ the bank class requires a method for opening accounts, and to deposit and withdraw from accounts specified by their account number. account numbers are generated sequentially starting with 101.

hints:

β€’ note that the balance of an account may only be modified through the deposit(double) and withdraw(double) methods.

β€’ the account class should not need to be modified at all. β€’ be sure to test what you have done after each step.

β€’ use bankdemo. java to test your code.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print β€’ the average of the values. β€’ the smallest of the values. β€’ the largest of the values. β€’ the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
question
Computers and Technology, 24.06.2019 23:30
Adrian has decided to subscribe for a new internet connection. he wants a high speed connection so that he can stream video content smoothly. which access technology would you advise adrian against using?
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Rom also called main memory or system memoryis used to stor the essential parts of the operating while the computer is running / true or false
Answers: 2
You know the right answer?
Bank accounts

look at the account class account. java and write a main method in a diff...
Questions
question
Mathematics, 09.10.2020 21:01
question
English, 09.10.2020 21:01
Questions on the website: 13722362