Question: 1 . Write a program ( as a function called enter _ data ) that requests address information into an address book database. This function
Write a program as a function called enterdata that requests address information into an address book database.
This function should perform the following tasks:
ask the user for the persons first name
ask the user for the persons last name
ask the user for the persons address
ask the user for the persons city
ask the user for the persons state
ask the user for the persons zip code
after all of this information has been entered by the user the function should display the entered information in a readable fashion
ask if the user would like to make any modifications to the entered information yn
ask which item the user would like to edit provided they said 'yes'
ask the use to enter the new information for the selected item
ask the user if they would like to add another entry into the database yn
if 'yes' write the last set of information out to a file and return to the first question, if no write the information out to a file and save as a m file and terminate the program
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
