assigsment-Write a program to simulate a bank transaction. There are two bank accounts: checking and savings....

50.1K

Verified Solution

Question

Programming

assigsment-Write a program to simulate a bank transaction. Thereare two bank accounts: checking and savings. First, ask for theinitial balances of the bank accounts; reject negative balances.Then ask for the transactions; options are deposit, withdrawal, andtransfer. Then ask for the account; options are checking andsavings. Then ask for the amount; reject transactions that overdrawan account. At the end, print the balances of both accounts. inc++

work done- output and need help with the if statement forwithdraw,deposit,transfer

Answer & Explanation Solved by verified expert
3.6 Ratings (438 Votes)
CODE includeusing namespace stdmain VARIABLE DECLARATIONfloat amountfloat    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students