Question: 5 G Il . 1 0 : 1 2 Blackboard widehat ( ) Project PPTX Design an ATM Machine that will ask the following: First
Il
:
Blackboard
widehat
Project PPTX
Design an ATM Machine that will ask the following:
First the programmer should initialize two variable:
String variable with name password: Example: password"werdfwe
List variable that have balance in the account with name account: Example account
Once the program run it should check the password before making any calculation as following
A Check password
User will input the password with a maximum trial of times. If heshe enters the password wrong for time the program will give a message "Your account is locked please contact your bank" and exit the program. If the user input the password correct it will show next step "give option"
B Give option
Check balance function
Add to account function
Withdraw from the account function
Print the output
Empty input to exit the program
A Give option: the user must input value from to or empty to exit the program. if the user enter any other value program will keep ask him to enter one of the correct choice numbers for maximum trial of times. If the user keep enter wrong number more than time program will exit directly with a message "you didn't select the right choice"
Check balance function
If the user select it will print for him last balance in his account "last value in the list"
Add to account function
Withdraw from the account function
Print the output
Empty input to exit the program
& Create PDF
Check balance function
Add to account function
If the user select it will ask the user to input the added amount and then add it to the balance "last value in the list" and stored as new last value in the account variable. Remember account variable should have maximum values, means first value in the list should be removed
Withdraw from the account function
If the user select it will ask the user to input the value required to withdraw from his account knowing that:
Amount required to be withdrawn should not exceed balance value "last value in the list". If the user, ask more than the value message will appear "you can't withdraw more than your balance please try again"
If the new balance become less than an extra Dhs will be deducted from your balance
New balance should store as new last value in the account variable. Remember account variable should have maximum values, means first value in the list should be removed
Print the output
Empty input to exit the program
Check balance function
Add to account function
Withdraw from the account function
Print the output
If the user select it will print as txt file "stored in the computer" with name "account.txt Last balances in the account, maximum balance, and minimum one
Empty input to exit the program
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
