Question: Can someone please help with this problem? Using C to create this program. I am fairly new and this is kinda hard for me. Write
Can someone please help with this problem? Using C to create this program. I am fairly new and this is kinda hard for me.
Write down a C program for generating and manipulating students record. The program should do the following: a) Ask the user for the number of desired records as an input. b) Use the dynamic memory allocation method to dynamically allocate the space for user specified number of student records. c) Represent each student record as a structure with two members. These members should be student_id which should be an integer value and students grade point average (GPA) which should be double or float variable. The maximum average grade point is 4.00. d) Print the students record. e) Ask the user to indicate the sorting member. If she picks student id then sort the records in ascending order using student_id or else sort the records using students GPA (in ascending order). Sorted records should be printed. f) Please use separate functions for creating the records, printing the records and sorting the records. Note: For sorting you may use bubble sort algorithm or any other sorting algorithm of your choice.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
