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 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
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