Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 } scoreNODE

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago

Question

=+5. Who could serve as your champion in the workplace?

Answered: 1 week ago

Question

=+7. What would freedom in the workplace look like for you?

Answered: 1 week ago