Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2) 42] Write a program to manage the grades of students in a class. To represent the information of each student define a structure type
2) 42] Write a program to manage the grades of students in a class. To represent the information of each student define a structure type named student. The members of this structure should be: 1. an integer that represents the student's ID number, 2. an array of 15 characters storing the first name, 3. an array of 15 characters storing the last name, 4. an integer that represents the project 1 grade, 5. an integer that represents the project 2 grade, 6. a floating point representing the final course grade To store the list of students use an array of pointers of type student*. Each pointer in the array has to point to a structure variable of type student representing the information of one student. The array has to be SORTED in increasing order of students' ID numbers Define the following functions student **create_class list( char *filename, int *sizePtr) Function create_class list reads the students' ID numbers and names from the input file (a text file), allocates the memory necessary to store the list of students and initializes the students ID's and names
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started