Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

##### please read the question carefully. we need c language program and you should test the code on compiler before answering. ,please if you don't

image text in transcribed

##### please read the question carefully. we need c language program and you should test the code on compiler before answering. ,please if you don't know or dont care to answer it correctly,then pass it ( (((((((test the code before answering))))))))

Objective Develop a C program on UNIX system. Description Write a C program that deals with Lists. List is collection of elements of same type. You need to develop a list to store ID numbers of students (maximum 100 students). Your program should do each of the following operations on the list: 1. Add new student to list by ID ((duplicate is not allowed)). 2. Remove student from list by ID. 3. Print the number of current students in the list. 4. Locate student in the list: Search about ID and return its position. 5. Swap two IDs in the list. 6. Print IDs in the list. 7. Exit. You should implement each operation in separate function. The main function will declare an empty list, show the menu of operations, read the user's choice, then call these functions as appropriate. The main function MUST not contain any details about operations. After your program read the user's choice, it should perform the operation (if possible) and display an appropriate output or error message, then show the menu of operations again until the user selects to exit. Required Files: Your Program must contain: 1. One header file that contains functions' prototypes, struct definition and any other needed definitions. 2. Two source files: a. The first one contains the implementation of main function only. b. The second one contains the implementations of all required functions except main. 3. Makefile that contains the rules of creating the object files and executable file of your program. 4. Pdf file contains screen shots of the execution of your program on your terminal. Programming Assignment \#1 Fall Semester 2022-2023 NES 2021 Submission Rules: - Put all needed files in one archive file and compress it then upload the compressed archive file on the link of submission on E-learning. - Zero credit will be assigned for each program that has compile error or cheating case. - Partial credit will be given to programs that executed correctly but give different results than the required in description above. - One submission per group (( 2 students per group)). Important Notes: - The execution of your program will be done using make command only. - You should write your names and ids in the top of each file as comments. - You should format your output to be clear and meaningful. - You can get help in C programming from chapter 15 in textbook

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

Students also viewed these Databases questions