Question: You are developing an application where a users contact list entries are to be stored. The fields of importance are name, surname, telephone number, and

You are developing an application where a user’s contact list entries are to be stored. The fields of importance are name, surname, telephone number, and a favourites flag. Assume that the name and surname will not exceed 20 characters in length and that the telephone number is 10 digits. The favourites flag indicates whether the contact is a favourite or not. Assume that the maximum number of contact list entries is unknown and that the C programming language is used 

a) What would be the most appropriate data structure to use when implementing the contact list? Think about the operations that would need to be performed on a contact list. b) Motivate your answer in b.) 

c) Declare a structure type called contact on paper. In other words, create a structure in C (struct)that will satisfy the requirements as stated in the question. 

d) Determine the amount of memory that will be reserved in RAM for an element in the list of type contact . Assume a variable of type int occupies 4 bytes.

Step by Step Solution

3.45 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The most appropriate data structure to use when implementing the contact ... View full answer

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 Computer Engineering Questions!