watson elementary school contains 30 classrooms numbered 1 through 30. Each clas
ID: 3633098 • Letter: W
Question
watson elementary school contains 30 classrooms numbered 1 through 30. Each classroom can contain up to 35 students. Each student takes an achievement test at the end of the year and receives a score from 0 to 100. Write a program that accepts data for each student in the school -studentID, classroom #, and score. Design a program that lists the total points for each classroom.
I have to read in from a text file which is set up:
StudentID, Classroom#, score
SID001, 1, SCORE
SID002, 1, SCORE
SID003, 1, SCORE
SID004, 2, SCORE
SID005, 2, SCORE
SID006, 2, SCORE
ETC, up to 30 classrooms.
Need psuedocode
Explanation / Answer
declare structure as struct student { char studentID[20]; int classroomno; int score; }s[35]; 1) open a file in read write mode. as FILE *ep=fopen(filename,"rw"); 2) take the input from user as for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.