Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Information Systems

Authors: Ken J. Sousa, Effy Oz

7th edition

9781305172180, 1285186133, 1305172183, 978-1285186139

More Books

Students also viewed these Computer Engineering questions

Question

In Exercises 8182, graph each linear function. 3x - 4f(x) - 6 = 0

Answered: 1 week ago