Skip to content

Commit

Permalink
Adding my project to the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
TVChatten committed Apr 3, 2021
1 parent c15cbeb commit e4f8648
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ATMProject.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import datetime
currentDatetime = datetime.datetime.now()
name = input("What is your name? \n")
allowedUsers = ['Shay','Mike','Love']
allowedPassword = ['PasswordShay','PasswordMike','PasswordLove']

if name in allowedUsers:
password = input("What is your password \n")
userID = allowedUsers.index(name)

while True:

if (password == allowedPassword[userID]):

print("Welcome %s" %name)
print("The current date and time is: " + str(currentDatetime))
print("These are the available options:")
print("1: Withdrawal")
print("2: Cash Deposit")
print("3: Complaint")

selectedOption = int(input("Please select an option:"))

if (selectedOption == 1):
cashWithdrawal = float(input("How much would you like to withdraw?"))
print("Take your cash.")

elif (selectedOption == 2):
cashDeposit = float(input("How much would you like to deposit?"))
print('Your current balance is: ' + (str(cashDeposit)))

elif (selectedOption == 3):
custComplaint = input('What issue will you like to report?')
print('Thank you for contacting us.')

else:
print("Invalid option selected. Please try again.")

else:

print("Password Incorrect, please try again.")
else:
print("Name not found, please try again.")

0 comments on commit e4f8648

Please sign in to comment.