Question
. Write the following blueprints (you must write all of the methods that we normally require in blueprints): Write a driver program named AccountDriver that
. Write the following blueprints (you must write all of the methods that we normally require in blueprints):
Write a driver program named AccountDriver that creates an array of Accounts. Have a second method that loads up the following data. Have a third method that prints out the data as shown below.
Account #123 has a balance of $30,000.00. It is a CheckingAccount and has a monthly fee of 2.0.
Account #145 has a balance of $35,000.00. It is a CheckingAccount and has a monthly fee of 3.0.
Account #166 has a balance of $65,000.00. It is a SavingsAccount and has an interest rate of 0.02%.
Account #187 has a balance of $76,000.00. It is a SavingsAccount and has an interest rate of 0.03%.
NOTE: the calcNewBalance() methods should apply the monthly fee or interest rate appropriately.
Java Class Java Class GAccount GAccountDriver tp 120FINALAnswers2018 AccountDriver) main(String[l):void loadData(Account[l)voidAccount() printinfo(Acco tp120FINALAnswers2018 acctNum: int balance: double Account(int,double) toString):String getAcctNum0int setAcctNum(int):void getBalance) double setBalance(double):void void > CheckAcct > > oUpdatable tp120FINALAnswers2018 SavingsAcct tp120FINALAnswers2018 tp120FINALAnswers2018 interestRate: double SavingsAcct) calcNewBalance):voidmonthlyFee: double CheckAcct) -CheckAcct(int,double,double) toString():String calcNewBalance):void getMonthlyFee):double |#8avingsAcct(int,double,double) toString():String calcNewBalance):void getinterestRate():double setinterestRate(double):voidStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started