Atm-functionalities(nested if)
In this project we will create a program which shows how an atm machine works related to basic functions as show account balance,cash withdraw,cash deposit and pin change.
firstly, we will declare 3 variables. one for account balance, one for an account number, and one for the pin, and initialize those variables
Now we will create a display screen of the atm along with a menu that will guide the user on the facilities a user can use from the machine.
Now we will code for the 1st option i.e. if the user selects Show Account Balance
Now we will code for the 2nd option i.e. if the user selects for Cash Withdrawal.
Now we will code for the 3rd option i.e. if the user selects for Cash Deposit.
Now we will code for the 4th option i.e. Pin Change.
If the user selects any option other than (1-4).code
Practice this project yourself and try to create the next project on your own.
The KBC Game
Create a virtual environment for the user by displaying the message ''Welcome to The KBC Game."
Display rules of the game: Rules: 1. You will be asked 5 questions from general knowledge. 2. You have to select your answer from the 4 options provided. 3. For every correct answer you will be awarded 1000 Rs. 4. In case of a wrong answer, you will be penalized by 500 Rs.
You have to create a quiz game program where the system asks 5 questions from the user related to any field and then the user is provided with 4 options. From this, he has to choose 1 option for the correct answer.
If the user selects the correct answer, he will be awarded 1000 Rs.
For every incorrect answer, the user will be penalized by 500 Rs.
At the end of the game, the program must display a message to the user about how many answers were correct and how many were incorrect.
Also, show the final amount he won from the game.
Last updated