Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Add New Entry: Delete an Entry: Search an Entry: Exit: The directory may contain

ID: 3609992 • Letter: A

Question

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;

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 andavailable for all students.

Explanation / Answer

Add New Entry: Delete an Entry: Search an Entry: Exit: The directory may contain

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote