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
Step: 1
a The most appropriate data structure to use when implementing the contact ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started