Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

5. Discuss the role of the Web in career management.

Answered: 1 week ago