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:
- A proper writing of C codes: structure, efficiency and modular.
- The readability, consistency, naming and user interface
- Robustness and testing
- 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
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