Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c language courses to learm the concepts of structures, pointers to structures, dynamic memory allocation and file manipulatiom For this, a structure called studentInfo

image text in transcribed
image text in transcribed In c language
courses to learm the concepts of structures, pointers to structures, dynamic memory allocation and file manipulatiom 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 courseInfol int courseID: char courseName [30] Write a complete, well documented C program that will be able to: a. Add a new student b. Delete a student and all information related to that student e. Search for a student and their information d. Display a list of e. Save student information to file f. Load student information from file current students 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,S15 23456790, Alex,Simpson, 1,CMSC 412 For each student, the data file is formatted in the following manner cstudent ID>,cfirst name>,clast namcnumber of courses they are taking?,course name>, ccourse id Afler loading the student list from the list, your program should be able to interactively ask the user for input. Your interactive menu should have the following inputs: 1. Add new student 2. Delete a student 3. Search for a student 4. Display current students 5. Save student information to file 6. Exit

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions