Question: 1 . Write a program ( as a function called enter _ data ) that requests address information into an address book database. This function

1. Write a program (as a function called enter_data) that requests address information into an address book database.
This function should perform the following tasks:
1) ask the user for the persons first name
2) ask the user for the persons last name
3) ask the user for the persons address
4) ask the user for the persons city
5) ask the user for the persons state
6) ask the user for the persons zip code
7) after all of this information has been entered by the user the function should display the entered information in a readable fashion
8) ask if the user would like to make any modifications to the entered information (y/n)
9) ask which item the user would like to edit - provided they said 'yes'
10) ask the use to enter the new information for the selected item
11) ask the user if they would like to add another entry into the database (y/n)
12) 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 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 Programming Questions!