Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Through this assignment, you are going to be maintaining a file of all students and their registered courses to learn the concepts of structures, pointers

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Through this assignment, you are going to be maintaining a file of all students and their registered courses to learn the concepts of structures, pointers to structures, dynamic memory allocation and file manipulation. For this, a structure called "studentInfo" with the following member elements should be defined Student ID 8 char long First Name 20 char long Last Name 25 char long Number of Courses Attending-integer Array of courselnfo-a 10 element array of courselnfo elements next Pointer to the next student structure in the list where the courseInfo structure has been defined as follow: struct courseInfo int courseID char courseName [30] Write a complete, well documented C program that will be able to: a. b. c. d. e. f. Add a new student Delete a student and all information related to that student Search for a student and their information Display a list of current students Save student information to file Load student information from file Assignment Description: You are provided with a data file called "studentRecords.txt" that has the data for a number of students. You are required to read this data from the input file into a sorted linked list data structure. The linked list must be sorted based on the Student ID. The sample input file will end with a line that has three stars. An example of an input file with two fictional students is: studentList.txt 23456770, Mina, Porter,3,ENEE,114.CMSC,412,ENME 515 23456790, Alex,Simpson, 1.CMSC,412 For each student, the data file is formatted in the following manner: first name>,last name>Cnumber of courses they are taking?course name, ccourse id

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

ISBN: 0619064625, 978-0619064624

More Books

Students also viewed these Databases questions