Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

Students also viewed these Databases questions