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, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
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
Mathematics, 07.12.2021 05:50
question
Health, 07.12.2021 05:50
question
Mathematics, 07.12.2021 05:50
question
Mathematics, 07.12.2021 05:50
question
Mathematics, 07.12.2021 05:50
Questions on the website: 13722362