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 ifelse statements and whileloop 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 eg balance
Use a while loop to keep the program running until the user chooses to exit.
Inside the loop, use ifelse 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 whileloop.
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 to Week
Week : Introduction to Programming and Flowcharts.
Week : Variables, Statements, Comments, and Types
Week : Booleans and Conditional Execution
Week : Loops and Iteration
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
