Question: Can you help me with C programming? REQUIREMENT Question 1 You are required to write a C program that will input the number of students

Can you help me with C programming?

REQUIREMENT

Question 1

You are required to write a C program that will input the number of students and reserve the memory space dynamically. You need to store the students name, ID and Culmulative Grade Point Average (CGPA) together as one unit. In order to do this, you must use a structure data type.

Next, you must declare ptr as a pointer of struct student * type (that can point to the location of struct student type) as shown below:

struct student *ptr;

Then, use a linked list data structure to store the student information in nodes and link them. You can use the operator -> to access the data in the structure through ptr.

Finally, your program should count and display the average cgpa entered for the n students. The linked list must be sorted by students name in ascending order before it is displayed to the user. The sample output is shown below:

The assessment will be done based on the following criteria:

  1. A proper writing of C codes: structure, efficiency and modular.
  2. The readability, consistency, naming and user interface
  3. Robustness and testing
  4. Complete documentation and correct submission.

Note: You MUST write C programming codes for this assignment. Codes written in C++ will not be accepted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!