Question: 5 G Il . 1 0 : 1 2 Blackboard widehat ( ) Project PPTX Design an ATM Machine that will ask the following: First

5G Il.
10:12
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="werdf12345we"
List variable that have 5 balance in the account with name account: Example account=[21345.6,17895.3,3567893.2,678932.1,5678.5]
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 3 times. If he/she enters the password wrong for 3 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 1 to 4 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 4 times. If the user keep enter wrong number more than 4-time program will exit directly with a message "you didn't select the right choice"
Check balance (function)
If the user select 1 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 2 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 5 values, means first value in the list should be removed
Withdraw from the account (function)
If the user select 3 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 3,000 an extra 2 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 5 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 4 it will print as txt file "stored in the computer" with name "account.txt". Last 5 balances in the account, maximum balance, and minimum one
Empty input to exit the program
 5G Il. 10:12 Blackboard widehat() Project PPTX Design an ATM Machine

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 Databases Questions!