Computers and Technology, 27.11.2019 19:31 landonp101
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"}
Answers: 1
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
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
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
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
Write a code atm. cpp able to pull .dat files with different names provided by the usersuppose amoun...
Mathematics, 07.12.2021 05:50
Computers and Technology, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50
Health, 07.12.2021 05:50
Social Studies, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50
Mathematics, 07.12.2021 05:50