Describe the structure of the name of note, containing the following fields: • s
ID: 3787167 • Letter: D
Question
Describe the structure of the name of note, containing the following fields:
• surname, first name;
• phone number;
• date of birth (an array of three numbers).
Write a program that performs the following actions:
• Data input keyboard into an array consisting of a maximum of 8 elements of type note Note, and make possible to interrupt input, so you can not enter all 8 items; after I sort the array by the first three digits of the telephone number;
• output to the console information about the person whose name is entered from the keyboard;
• If this is not, display an appropriate message;
• implement a second version of the program, instead of an array to use the doubly linked list; add elements so as to preserve the ordering of the list by the first three digits of the telephone number (inserting a new element after the element that is less than the new element and the front of a large element).
Explanation / Answer
The definition of goven structure would be as below:
struct Note{
char firstName[50];
char surName[50];
int phoneNumber[20];
int dob[10];
} note;
here note before end semicolon is optional variable of this structure.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.