Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

must be done in c language and using linux mint A lot happened on this date. In 1949, the North Atlantic Treaty Organization (NATO) was

must be done in c language and using linux mint

image text in transcribed

A lot happened on this date. In 1949, the North Atlantic Treaty Organization (NATO) was formed. In 1968, Martin Luther King Jr. was assassinated in Memphis, Tennessee. In 1973, the world Trade Center, then the world's tallest building (110 floors), opened in New York. And most importantly, in 1975, Microsoft is founded as a partnership between Bill Gates and Paul Allen to develop and sell BASIC interpreters for the Altair 8800 computer. Write a program that uses a pointer-based linked list. You should use the following struct (declared as a global): struct node char name [42]; struct node next; b: Note that no other variables can be global. To populate your linked list open the hw8.data file and read in the contents. The file format is as follows: name op code For example: Vlad a Cullen a Morticia a Ophelia a Smurf a Morticia d The name will be a string. The op_code will be a character ('a'or 'd'), where aindicates that you should add this person to the linked-list, 'd' indicates that you should delete this person from the linked-list. Note that whern you add a person you must add them in increasing order. I.e we are adding them as an insertion sort (no, you cannot presort the list). Adding and deleting MUST be seperate functions You also need to provide output that proves your program works. After the last data item has been processed, your program must display the contents of the linked-list. This MUST be a seperate Tunction. Your program must also correctly free all links of the list on termination. This MUST be a seperate function. EXTRA CREDIT (10 points): Instead of creating a single link linked-list, create a doubly linked linked list. Populate the list accordingly and display the contents of the list from both directions (your must clearly state which display is which). Also note in your email, that you did the extra credit. The extra credit grading is atomic it either works (+10 points) or it doesn't (0 points)

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_2

Step: 3

blur-text-image_3

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions