Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c language only please Write a program to read a list of students from a file and create a list. The program should use a
c language only please
Write a program to read a list of students from a file and create a list. The program should use a linked list for implementation. Each node in the linked list should have the student's name, a pointer to the next student, and a pointer to a linked list of scores. There may be up to four scores for each student. The program should initialize the student list by reading the students' name from the text file and creating null score list. It should then loop through the list, prompting the user to enter the scores for each student. The scores' prompt should include the name of the student. After all scores have been entered, the program should print the scores for each students along with the score total and the average score. The average should include only those scores present. 1 The data for each student are as follows: Score 3 Score 4 63 90 93 93 89 81 85 95 87 95 91 96 89 Student name Albert Einstein Steve Abrew David Nagasake Mike Black Andrew Dijacstra Joanne Nguyen Chris Walljasper Fred Albert Dennis Dudley Leo Rice Fred Flintstone Frances Dupre Dave Light Hua tran Sarah Trapp Score 1 Score 2 52 67 90 86 100 85 81 87 90 82 84 80 86 10 70 68 74 77 95 73 81 82 76 89 76 91 81 83 98 79 81 74 78 79 91 87 94 83 94 93 hint: You might define scoreNode and cast dataPtr as pointer of scoreNODE as follows: typedef struct scoreNode { int count; // count the number of scores the student has int score; //or use float struct scoreNode* link; // pointer to the next scoreNode } scoreNODEStep 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