12:09 a M 63% = bartleby E Q&A A 8 Engineering / Computer Engineeri... / Q&A Library / A Absolute Requirements The Accoun... ctith an initial ut FEtatacnt 1]ptanca rdl: ie L (aperatsanty ste"H Set 4:...

What does this mean: This does not handle the end of month processing correctly. The monthly fee should only be deducted if the balance is below the minimum. Similarly, the interest should only be added if the balance is above the minimum. And it is a c++ assignment not a Java assignment12:09 a M<br>63%<br>= bartleby<br>E Q&A A 8<br>Engineering / Computer Engineeri... / Q&A Library / A<br>Absolute Requirements The Accoun...<br>ctith an initial ut FEtatacnt 1]ptanca rdl:<br>ie L (aperatsanty ste

Extracted text: 12:09 a M 63% = bartleby E Q&A A 8 Engineering / Computer Engineeri... / Q&A Library / A Absolute Requirements The Accoun... ctith an initial ut FEtatacnt 1]ptanca rdl: ie L (aperatsanty ste"H Set 4: Sat po Sefie i farant etatalkocant, lid kece r ntla out pited sont" into cet rindl: Sat ; doube anourt; int p Safie baol tifaundfae; Sfcne tr; ceants (1)ithdrefemunt): le sicea er A i t t ePlera c peratiant "lace" intie ST pa baol tafend-falu ant ttetelkece t Dout"Carra balance in cent d la Erts piatance)na: cat vle sucet r edi (eraniat "clese caut ind of novtt prececetrg corgleto"ordl; tant 1etalkecant islisihe L ernt E dart Sltatalsca, l- accoanta1] stringt) ed caut RC engriet omend npertientyp string ie t le, an Saring ther Chinge . .H 500.0 Eelen 11 Mthim ad ta Output: tas atd II
M eting nuelinteresttate),<br>ww MS<br>men p w<br>Woclude dostream<br>2include fstrean<br>3 includecstring<br>4 using nanespace std;<br>6 class Account (<br>int id;<br>double balance<br>publies<br>Account ()<br>1d-0<br>balance-.0<br>21<br>12<br>14<br>Account (int newID, double initie1Balance){<br>id new10,<br>balance initialBalance,<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>veid set10(int neu0)(<br>id - newID:<br>void settalance(double initiallalance){<br>balance initialelance;<br>24<br>25<br>int get10)<br>return 1d:<br>26<br>27<br>28<br>29<br>deuble getsaiance()<br>return balance;<br>void withdraw(double amount)<br>balance balance ount;<br>32<br>34<br>35<br>void deposit(eouble aount)<br>balance - belance mount,<br>36<br>17<br>38<br>39<br>virtual void elosetonth()<br>virtual string accountstring() -<br>41<br>43 ).<br>44 class Savings publie Account{<br>double interest;<br>double inBalance;<br>46<br>47<br>48<br>public:<br>Savings()<br>49<br>se<br>void eloselenth()<br>double pre getalance():<br>52<br>$3<br>double nevalance - pre ((pre (interest/100.0))/12.0);<br>54<br>setsalance(newBalance);<br>56<br>string accountstring()<br>57<br>return

Extracted text: M eting nuelinteresttate), ww MS men p w Woclude dostream 2include fstrean 3 includecstring 4 using nanespace std; 6 class Account ( int id; double balance publies Account () 1d-0 balance-.0 21 12 14 Account (int newID, double initie1Balance){ id new10, balance initialBalance, 15 16 17 18 19 20 21 veid set10(int neu0)( id - newID: void settalance(double initiallalance){ balance initialelance; 24 25 int get10) return 1d: 26 27 28 29 deuble getsaiance() return balance; void withdraw(double amount) balance balance ount; 32 34 35 void deposit(eouble aount) balance - belance mount, 36 17 38 39 virtual void elosetonth() virtual string accountstring() - 41 43 ). 44 class Savings publie Account{ double interest; double inBalance; 46 47 48 public: Savings() 49 se void eloselenth() double pre getalance(): 52 $3 double nevalance - pre ((pre (interest/100.0))/12.0); 54 setsalance(newBalance); 56 string accountstring() 57 return "Saving accountr to string(geti0()) has balance of ste string(getsalance()); void setInterest(double interest}{ thisinterest-interest; 64 void setMintalance(double wiHBalance)( this mintalanceminsalance; 65 69 class Checking public Account{ double winBalance; double monthlyree: 71 72 public: 73 Checking(){ 74 void closekonth() double nealance getalance() setsalance(newialance); 76 77 sonthiyfe; string accountsering() 81 82 83 return "Checking account + to string(getID()) +" has balance of s-to string(erttalance()); ; 84 veid settonthlyFee(double monthlyFee){ this nonthlyFeenonthlyfee, 85 85 87 void settinalance(double sinielance){ this-intalance minsalance; 88 89 91 92 94 int main()( Account ccounts = new Account [10]; ifstrean infile; infile.open("bank2.txt"): i( antile) cerr "File cannont be opened « endl; else cout "File Opened"endl; string aperationType, int tetalaccount- hile(infile operationType) 95 96 97 86 98 99 100 101 182 184 105 it(operationtype "Savings"H int id; double initialbalance,ininualance annualInterestRate infile id initialBalance 186 107 108 minimunsalance annualInterestRate; 109 Savings "savingACCount sevingiccount setinterest(ennualinteresttate), savingke count-setNinbalance(minimunialance); accounts(totalAccount) - savingaccount; accounts(totalAccount)-setID(ie); accounts(totalAccount] settalance(initialBalance), tetalaccounti cout eSaving account nunber "totalccount e created"cendl; coutwith an initial balance of Saccounts(totalAccount 1)-getBalance()endl. 110 new Savings(). 113 114 116 117 118 119 120 121 else (operationType == "Checking"){ int id: double initial8alance,inimuntalance, monthlyfees; infile ie initialsalance s inimualance onthlyFees: Checking checkingaccount = new Checking(). checkingaccountsetkonthlyfee(eonthiyfees), checkingiccountsetkinbalance(sinimunbalance), accounte(tetalaccount) checkingaccount; accounts(totalAccount]-setID(ie): accounts(totalAccount) setsalance(initialBalance): totalaccount 122 123 124 125 126 127 128 129 130 132 133 Cout e"Checking account nunber "ctotalAccount « created"
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here