Question
Attention>>>>>>>>> project should written in C languages In the project, a student affairs information system simulation is requested to be made using structures (struct), linked
Attention>>>>>>>>> project should written in C languages 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. void insertStudent(FILE* filePtr, StudentNodePtr* cr, int id) Write functions that have the prototype int deleteStudent(FILE* filePtr, StudentNodePtr* cr, int id). 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, the elements in the linked list are pointed to by filePtr. Write it in the file you opened in the main() function. 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 is first should place students in a linked list by reading from the file. Then, he should search by id on this linked list, and if the student is available, he should show the information about him on the screen. Example output: Enter the student's id? id Name Surname Department Class Faculty Gpa Year Recv. Courses ---------------------------------------------------------------------------------- 2008199999 John White ICI M.Sc. Ege 82 2009 UBI501,UBI503,UBI505.
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 students in a linked list. Then it should calculate according to the class values on this linked list. Example output: Class Number of Students ---------------------------------
B.Sc. 120
M.Sc. 55
Ph.D. 18
e) Write a void displayRecvCourse (FILE* filePtr, char* code, char* term, int year) function that finds and displays the students who have taken that course in the desired term and year according to the entered course code, term value and year value. Your function should first read from the file and put students in a linked list. 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.
Example output:
Enter the code of the lesson? UBI503 Enter the period? Fall Enter the year? 2008 Id Name Surname -------------------------- 2008199999 John White 2008299999 Jeny McCain 2008599522 Gregory Whitehead
f) The void registration( Write the FILE* filePtr) function. 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. Attention>>>>>>>>> project should written in C languages
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started