Write a program to keep records and perform statistical analysis for a class of
ID: 3646995 • Letter: W
Question
Write a program to keep records and perform statistical analysis for a class of students. The class may have up to 40 students. There are five quizzes during the term. Each student is identified by a four-digit student number.The program will print the student scores and calculate and print the statistics for each quiz. The output is in the same order as the input; no sorting is needed. The input will be read from a text file, and will also be outputted as a text file.
Sample data.txt:
1234 78 83 87 91 86
2134 67 77 84 82 79
3124 77 89 93 87 71
Rework this problem creating statistics for each student. Print the student's high, low, and average scores to the right of Quiz 5. Provide appropriate column headings.
Explanation / Answer
#include #include #include #include using namespace std; struct student { int stnumber; char stname[20]; char sex; float quizz1; float quizz2; float assigment; float midterm; float final; float total; int numberOfitem; }; student st[80]; int itemcount=0; void displayheading(); void Showmax(); void Showmin(); void Sortbyid(); bool Searchduplicate(int); //Menu contruction void displaymenu(){ coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.