Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that can be used in university to manage the registration of courses by students. In this program, you will manage arrays of

Write a program that can be used in university to manage the registration of courses by students. In this program, you will manage arrays of linked lists.

The number of courses is unknown, also the number of students, and might change from a term to another.

Each student has name and ID, and grade, and each course has a title, and code.

The program uses two dynamic arrays of all students and all courses.

Because student can register in more than one course, so one data member of each student object in the array refers to the list of the courses registered by him.

Also, because several students may register to the same course, so one data member of each course object refers to the list of students registered in this course.

image text in transcribed

In the testing class, use a list of courses, and a list of students to do the following:

1-Add a new student.

2-Add a new course.

3-Register a new student to a new course.

4-Remove a student from a course.

5-Delete a course.

6-Print all students in a course.

7-Print all courses registered by a specific student.

8-Assign a grade to a student.

9-Store all information of students and courses in the university file at the exit, and initialize the entire linked list using this information at the beginning of program.

Students 404 405 1 2 3 5206 5207 5208 300 300 3 0 3e 0 31 0 Students 404 405 1 2 3 5206 5207 5208 300 300 3 0 3e 0 31 0

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago