Assignment: In this project, you are required to develop an application formaint
ID: 3609967 • Letter: A
Question
Assignment:
In this project, you are required to develop an application formaintaining a telephone directory. Application will provide aninterface to user for letting him perform different tasks whichwill include:
Add New Entry:
Delete an Entry:
Search an Entry:
Exit:
The directory may contain N-Number of records. Each directoryentry will contain a single record and each record will consist ofperson CNIC, Name, Address and telephone Number. User will be ableto modify the Address and telephone number only. You can use“Struct” structure as dynamic array, for storingrecords.
Note:
The number of records should not be fixed and user should beable to enter as many records as possible, you will have to useLinked List for this purpose.
Hint:
Following data structure may be used to store each record:
Struct Record;
struct Record{
Char * sCNIC; // Used to store
Char * sName;
Char * sAddress;
Char * sPhone;
Record * pNext; //Address of the next Node in thelist
} Record *pFirst, *pTemp, *pLast;
A sample Interaction may be like:
-------------------------------Welcome to MyTelephone Directory-----------------------------
(Virtual University of Pakistan)
Main Menu:
1- Enter New Record
2- Delete a Record
3- Search a Record
4- Exist Application:
---------------------------
Enter Your Choice (1/2/3/4)? 1
Enter CNIC: 11111-1111111-1
Enter Name: Salman Khan
Enter Address: 137 – Shadman, Lahore
Enter Telephone: 042-111880880
Are You Sure to save Record (Y/N) Y
Record Saved!
Press any key to continue….
(After user presses any key, the screen will be cleared and themain menu will appeared)
Main Menu:
1- Enter New Record
2- Delete a Record
3- Search a Record
4- Exist Application:
---------------------------
Enter Your Choice (1/2/3/4)? 2
Enter CNIC: 11111-1111111-1
Are You sure to delete this record (Y/N) Y
Record Deleted!
Press any key to continue…
(After user presses any key, the screen will be cleared and themain menu will appeared)
Main Menu:
1- Enter New Record
2- Delete a Record
3- Search a Record
4- Exist Application:
---------------------------
Enter Your Choice (1/2/3/4)? 3
Enter CNIC: 11111-1111111-1
Person CNIC: 11111-1111111-1
Person Name: Salman Khan
Person Address: 137 – Shadman, Lahore
Person Telephone: 042-111880880
Press any key to continue…
(After user presses any key, the screen will be cleared and themain menu will appeared)
Main Menu:
1- Enter New Record
2- Delete a Record
3- Search a Record
4- Exist Application:
---------------------------
Enter Your Choice (1/2/3/4)? 4
Are you sure to exit (Y/N) Y
At any prompt message if user presses the key “N”,the Screen must be cleared and the main menu should bedisplayed
You have successfully quitted.
Note: Best solution may be acknowledged .
Explanation / Answer
Assignment: In this project, you are required to develop an application formaint
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.