Question: Please program in C Follow the instruction below to develop the program. 1) Download the data file input.txt from Pilot and add it to your
Please program in C


Follow the instruction below to develop the program. 1) Download the data file input.txt from Pilot and add it to your project. This text file contains a list of student records, showing their marks and respective grades. Each student record is on a separate line. The first line in the file contains the number of records in the file. 2) in your C program, declare structure student as follows: typedef struct student char name (50]; int marks; char grade 101; struct student next; student; 3) Write the following functions: student readStudentData(student head); This function reads the number of records to be read (i.e., the first line of the input file). It should then use a for loop to read student data. If the FILE is empty, an appropriate error message should be printed out. void printStudentData(student head); This function prints the data of students to the output. If there is no data, an appropriate message should be displayed. 4) Main function In the main function declare student head a NULL Issue call head readStudentData(head); to read student data from the text file into a linked list or queue, and then call printstudentData (head) to display student data in the order they appear in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
