Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*****(should written in C language) ******In the project, a student affairs information system simulation is requested to be made using structures (struct), linked lists (linked

*****(should written in C language) ******In the project, a student affairs information system simulation is requested to be made using structures (struct), linked lists (linked list) and files (file). According to this; a) Create a structure called a course. The members of this structure are code, name, instructor, term (can take Spring or Fall values), year, and a course pointer. Functions with prototype void insertCourse(CourseNodePtr* cr, CourseNodePtr* inscr, char* code), char* deleteCourse(CourseNodePtr* cr, CourseNodePtr* inscr, char* code) that will operate on course data structure elements, since the courses taken by the students are to be kept with a linked list. write. While writing the insertCourse() function, prevent the same student from taking the same course more than once. b) Create a structure called student. Let the members of this structure be id, name, surname, department, class (can take B.Sc., M.Sc., Ph.D.), faculty, gpa, year, a course pointer, and a student pointer. Write functions with prototype void insertStudent(FILE* filePtr, StudentNodePtr* cr, int id), int deleteStudent(FILE* filePtr, StudentNodePtr* cr, int id) that will operate on student data structure elements, since students want to be kept with a conjunction list in the information system. While writing the insertStudent() function, prevent the same student from entering the system more than once. In both the insertStudent() function and the deleteStudent() functions, write the elements in the linked list into the file you opened in the main() function pointed to by filePtr. Thus, since the latest version of your linked list will be in a file, your program will use the latest database in different runs. c) Write a void displayStudent(FILE* filePtr, int id) function that searches the system according to the student id entered and displays the information about the student on the screen if the student is present in the system. Your function should first read from the file and put the students in a linked list. Later on should search by id on this linked list and, if available, the student should display the information about it on the screen. d)Write a void displayClassNumbers(FILE* filePtr, int id) function that calculates how many students are currently registered in the system of each student class and displays this on the screen accordingly. Your function should first read from the file and put the students in a linked list. Then it should calculate according to the class values on this linked list. e) A void displayRecvCourse (FILE* filePtr, char* code, char* term, int year) that finds and displays the students who have taken that course in the desired semester and year according to the entered course code, term value and year value. ) write the function. Your function will first read from the file and display the students as a linked list. should be placed inside. Then, this linked list should be searched according to the values and the student should display the information about it on the screen, if available. f) Using the insertStudent(FILE* filePtr, StudentNodePtr* cr, int id) and insertCourse(CourseNodePtr* cr, CourseNodePtr* inscr, char* code) function that you defined in parts a and b, you can get detailed input from the user and register the student. Write a function void registration(FILE* filePtr) that does it. This function should register the student after getting all the information about the student from the user. g) Create a menu by using the functions in all the options you wrote before. Your menu should contain basic features such as student registration entry, student registration deletion, search. ******>>>>(should written in C language)<<<<******

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions