Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment aims to help you practice linked list data structure and basic linked list operations. Your main task in this assignment is to create

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

This assignment aims to help you practice linked list data structure and basic linked list operations. Your main task in this assignment is to create a C program that will allow you manage your friend list which we call FriendBook. Your FriendBook will include the list of your friends with their details (first name, last name. gender and their birthday) and will help you manage your list of friends where you can add a friend, find the details of a friend, and block a friend from your friend list. The idea of FriendBook is similar to how Facebook manages your list of friends When you run the C program, your FriendBook will first create a linked list of your friends which is initialised by reading the details of your friends from an external text file and then some operations will be provided for you to manage your FriendBook. Therefore, your program needs to support the following operations. Reading your friends from an external file and initialising your friend list: The program needs to be invoked with a command line argument which is the name of the file that includes your friend details. If this command line argument is not provided then your program needs to ask the user to enter the name of the text file. The file should include the first names, last names, genders and date of birth (dd/mm/yyyy) of your friends, separated by a semicolon . We assume that there is no duplicates in the first names and surnames. An example file is shown below that contains there friends . Tiffany;Evans Smith; F: 22/01/1989; Alex;Williams;M; 23/06/1988 Clay: Bristol; F: 30/12/1989; The program will read your friends from the file and use a linked-list to store your friends' details Please note that you cannot make any assumptions about the number of your friends and there is no upper limit for the number of friends Your friends may not be sorted in an external file, however your FriendBook which will be created by the program should be sorted by the first names in ascending order. Therefore when you insert a new friend to the list, you need find its position and then insert it. The program should not add a new friend at the end of the list and then sort the list Inserting a new friend: After the initialisation of your FriendBook with an external file, you may want to insert a new friend to your friend list. Therefore, the program should ask you the required details (first name, last name, gender, and date of birth) for your new friend and add it in the ileIllD1%C4%BUI dirilenler/ONG2 13As ynnislitl Fall20 ip ge 1 of 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

How could assessment be used in an employee development program?

Answered: 1 week ago