class Lab6AQ3: @staticmethod def main(): print("Inserting card!!!!") pin = input("Enter PIN: ") bal = 1000 # correct PIN entered by the user if pin == "1234": accType = input("Enter Account Type: ") print("Opening Balance: $" + str(bal)) # incorrect PIN entered by the user else: print("Invalid PIN. Removing card!!!!") # keep doing transactions when the correct PIN is entered by the user while pin == "1234": tcnType = input("Enter Transaction Type: ") # deposit transaction if tcnType == "D": depAmt = input("Enter Deposit Amount: $") bal += int(depAmt) print("Closing Balance: $" + str(bal)) print("Transaction complete!!!!") print("Removing card!!!!") break # exit program # withdrawal transaction elif tcnType == "W": wdrAmt = input("Enter Withdrawal Amount: $") if int(wdrAmt) > bal: print("Insufficient balance. Transaction cancelled!!!!") print("Removing card!!!!") break # exit program else: bal -= int(wdrAmt) print("Closing Balance: $" + str(bal)) print("Transaction complete!!!!") print("Removing card!!!!") break # exit program # invalid transaction type else: print("Error with selecting transaction. Try again!!!!") continue # go back to start of program print("Goodbye!!!!") Lab6AQ3.main()