Question: If user is not in users: 4 . 1 . Print out a message to let the customer know that he / she doesn t
If user is not in users:
Print out a message to let the customer know that heshe doesnt have an account with
the Bank.
Print out another message to ask the customer if heshe would like to have an account
with the bank. Convert the input to lower case with casefold or lower function.
If the first letter entered is not equal to y print out an inspiring message to
encourage the customer to come back again, then exiting the program.
else ask the customer if heshe would like to enter to create a pin or enter
to have the system create a new pin
The user gets chances to pick a pin between to
If the customer would like to have the system create a new pin, the system will
randomly create a pin between to
Save the new username and pin to users dictionary when the pin is successfully
created.
usersuser pin
After the pin is created, display the following message:
Clear the output screen once the pin is created with ossystem function.
Continue with the code we created in PE to ask the user the existing user or the new
user to enter the pin and make transactions. Please note: we will not code an else block
for the if statement coded in step
In the users dictionary, now the pin is saved as an integer not a string. After we ask a
bank customer to
selection inputEnter pin or x to exit application: casefold
We first check to see if selection x If that is true, use the keyword break to exit
the while loop if x is entered, as we coded in PE
If the bank customer entered the pin, we need to convert that to an integer since all
inputs collected from console are string.
Here is how we coded in PE:
elif selection pin :
We will change that to the following in PE:
elif intselection usersuser :
Follow standard submission instructions see course website Week Assignment
Help Guide... and then the Assignment Submission Instructions area
Submit your asuritetransactionpy only and do not submit a zip file submission.
Zip file submissions will only be requested for larger programs we create later in this course.
In the first portion of the course, you will be submitting the module only. Ensure you read
instructions carefully to ensure you submit correctly.
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
