Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Description: In this project ( please use linked list in c programming), you are going to maintain a database of all students attending Montgomery

Project Description: In this project ( please use linked list in c programming), you are going to maintain a database of all students attending Montgomery College using linked list. There are two types of structures in this project. For each course, we have a structure called: "course". It has the following member elements: Course Name --5 char long (such as ENEE) Course ID integer (such as 150) Course CRN integer (such as 33561) For each student, we have a structure called "student" with the following member elements: First Name 100 char long Last Name 100 char long MC Number 10 char long (such as M12345678) Number of Courses registered integer (no more than 10) Array of Courses a 10 element array of "course" elements next pointer to the next student Structure in the list In your program, you will display a prompt list> and wait for the user to enter one of the four choices (1) insert (2) delete (3) display (4) exit. If an invalid choice is entered, display error message "Invalid Choice." and wait for next input. If choice is 1, the program will prompt the user to enter a student record. The record will then be inserted into a sorted linked list based on the MC number of the student. For each student, the record will be entered line by line in the following manner. No individual prompt is needed for each item. For example: Lisa Sanders M12345678 3 ENEE 204 33511 ENEE150 33561 ENEE206 32204 Make sure you check thoroughly for relevant errors and display associated error messages. If the student exists in the list already (i.e, same MC numbers), display a proper error message and return to the prompt. If choice is 2 and the student list is not empty, the program will ask the user enter the student's MC number to be deleted. If student's MC number is not found in the list, display a proper error message and return to the prompt. If choice is 3, program will display a list of sorted student record in the format that is shown in choice 1 based on the MC number of the student. Use an empty line to separate each student's record. Display the total number of students in the list at the end. If the list is empty, display "The list is empty". If choice is 4, program will terminate. Error handling: Invalid choice Failure to allocate memory Delete an empty list MC number not found Student exists already (duplicated ID number) when inserting Number of courses exceeds 10 Invalid number of courses

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Determine by direct integration the centroid of the area shown.

Answered: 1 week ago

Question

Question How is life insurance used in a DBO plan?

Answered: 1 week ago