Question: For an ATM system, write a python program for the following operations: Press b to check balance Press w to withdraw Press t to transfer

For an ATM system, write a python program for the following operations:

Press ‘b’ to check balance

Press ‘w’ to withdraw

Press ‘t’ to transfer

Press ‘r’ to recharge mobile balance

Press ‘s’ to print the transaction summary

  • Take input in a variable named ‘action’
  • Write the code for withdraw (maximum withdrawal limit is Rs. 20,000), deduct the amount from total balance if successfully withdrawn.
  • Write the code for transfer, take an ‘accountNo’ (maximum transfer limit is Rs. 20,000), deduct the amount from total balance if successfully transferred.
  • Write the code for recharge, take a ‘mobileNo’, and deduct the amount from total balance if successfully recharged.

Step by Step Solution

3.39 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1951 E V Q l 41 Title coding utf8 Created on Thu Aug ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!