Question: The program should ask the user for their name and email address and then create a random company ID for them which should be an

The program should ask the user for their name and email address and then create a random company ID for them which should be an integer with four digits.
You will write four functions (other than main) in your program.
get_account: a function which calls the following three functions, storing the values they return in three variables.
get_name: asks for and returns the users name
get_email: asks for and returns the users email
calculate_id: calculates and returns a new company ID for the user
After get_account has called these three functions and saved their return values, it should return all three.
In your main function, call get_account and save the three values it returns in variables. These variables should then be printed to the console. A sample run of the program looks like this:
Enter your name: John Smith
Enter your Email: johnsmith@college.com
Name: John Smith
Email: johnsmith@college.com
Company ID: 8547

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!