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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
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 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

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education