Question: Q . : - write a code in python only using the must follow instruction for a banking system that allows users to perform basic

Q. :- write a code in python only using the must follow instruction for a banking system that allows users to perform basic banking operations such as checking their balance, depositing money, and withdrawing money. This task will help you practice using if-else statements and while-loop concept.
Instructions you must follow:-
Create a menu that displays the following options to the user:
Check Balance
Deposit Money
Withdraw Money
Exit
Initialise a variable to store the users balance (e.g., balance =0).
Use a while loop to keep the program running until the user chooses to exit.
Inside the loop, use if-else statements to handle the users choice:
If the user chooses to check their balance, display the current balance.
If the user chooses to deposit money, prompt them to enter the amount to deposit and update the balance accordingly.
If the user chooses to withdraw money, prompt them to enter the amount to withdraw. Ensure that the withdrawal amount does not exceed the current balance. Update the balance accordingly.
If the user chooses to exit, terminate the loop and display a goodbye message.
Requirements:-
To achieve full marks for this task, you must follow the instructions above when writing your solution. Additionally, your solution must adhere to the following requirements:
You must implement the while-loop.
Appropriate data types must be used for all user inputs.
You must not use function conpcet.
You must not use any concepts not covered in Week 1 to Week 4.
Week 1: Introduction to Programming and Flowcharts.
Week 2: Variables, Statements, Comments, and Types
Week 3: Booleans and Conditional Execution
Week 4: Loops and Iteration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!