Home / Expert Answers / Computer Science / part-1-create-a-user-object-in-its-constructor-39-s-parameters-take-these-values-id-first-name-l-pa501

(Solved): Part 1: Create a User object. In its constructor's parameters take these values - id, first_name, l ...



Part 1: Create a User object. In its constructor's parameters take these values - id, first_name, last_name, birthday and phone number. Override __str__ object to print values in this format: `User ID: 0 Alex Anderson 03/18/1999 402-123-4567` Part 2: Prompt a user to input three options, A, S, L -------------------------------------------------------------------------------------------------------------------------------------- if A is a entered then ask user to enter (you can assume user will always enter proper data, no need to do checking) id - int first name - string last name - string birthday (mm/dd/yyyy format) - string phone number (xxx-xxx-xxxx format) - string Once user enters data, convert data into a Python object User. Store all given data in your program. (You can store it to whatever you want, LIST, TUPLES or DICT, its up to you) Do not accept data if id already exists. You can discard remaining entries if id is duplicate. Print an error message Prompt user with options after data was collected. ---------------------------------------------------------------------------------------------------------------- if L is entered then print all entered data in this format `User ID: 0 Alex Anderson 03/18/1999 402-123-4567` Prompt user with options after printing all data. ---------------------------------------------------------------------------------------------------------------- if S is entered then save all data into a file and exit the program. MUST include: User.py main.py - must have main function in it.



We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe