subject

Write a code atm. cpp able to pull .dat files with different names provided by the usersuppose amountwithdrawn denotes the amount to be withdrawn, servicecharge denotes the service charges, if any, andaccountbalance denotes the total money in the account. you can now write the algorithm as follows: a. read accountbalance from a file. the name of the file will be typed in by the user multiple sample files are being provided to test the various pathsget amountwithdrawn from user. b. if amountwithdrawn > 500 print "the maximum amount that can be drawn is $500"otherwise (if accountbalance < = 0) print "account balance is < = 0. you cannot withdraw any money. "otherwise{ if (amountwithdrawn > accountbalance) { print "insufficient balance. if you withdraw, services charges
will be $25.00. select yes/no." if (yes) { if (amountwithdrawn > 300) servicecharge = (amountwithdrawn – 300) * 0.04; otherwise servicecharge = 0; accountbalance = accountbalance – amountwithdrawn - servicecharge – 25; print "collect your money. " print "your remaining balance is $.xx" }}otherwise{ if (amountwithdrawn > 300) servicecharge = (amountwithdrawn – 300) * 0.04; otherwise servicecharge = 0; accountbalance = accountbalance – amountwithdrawn - servicecharge; print "collect your money." print "your remaining balance is $.xx"}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percΓ© tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
question
Computers and Technology, 24.06.2019 12:10
What is it called during the editing process when the processor ensures that a character holding a coffee mug from one angle is holding the same mug in the same way when the shot switches to another camera at another angle? cinematography continuity technology prop use
Answers: 1
You know the right answer?
Write a code atm. cpp able to pull .dat files with different names provided by the usersuppose amoun...
Questions
question
English, 21.10.2020 23:01
question
Geography, 21.10.2020 23:01
question
Mathematics, 21.10.2020 23:01
question
English, 21.10.2020 23:01
Questions on the website: 13722362