Question: Construct a C++ program to help a maths tutor record and compute the performance of students on a quiz. The program should compute various
Construct a C++ program to help a maths tutor record and compute the performance of students on a quiz. The program should compute various statistics about a student and print it out. The details are given as follows: a. The program should read in the 5-digit ID number of a student, the number of correct and wrong answers. b. The program should then print the following items: i. Student ID, number of correct and wrong answers. ii. Total number of questions answered. iii. Total number of questions omitted. Each quiz consists of 50 questions. iv. Total score, which is double the number of correct answers. v. Percentage of correct answers. (Number of correct answers divided by total number of questions answered). c. The program should also determine the following: i. If the student had more correct than wrong answers, or more wrong than correct answers, or the same, print a message with this information. ii. If the student omitted ten or more questions, print a message with this information. d. The process should be repeated for each student. You must decide how to recognize the last student. e. Lastly, the program should print the total number of students in the class, the student ID having the highest score and the one with best correct answer percentage. Let's assume that there will only be one student for each category. Construct a C++ program to help a maths tutor record and compute the performance of students on a quiz. The program should compute various statistics about a student and print it out. The details are given as follows: a. The program should read in the 5-digit ID number of a student, the number of correct and wrong answers. b. The program should then print the following items: i. Student ID, number of correct and wrong answers. ii. Total number of questions answered. iii. Total number of questions omitted. Each quiz consists of 50 questions. iv. Total score, which is double the number of correct answers. v. Percentage of correct answers. (Number of correct answers divided by total number of questions answered). c. The program should also determine the following: i. If the student had more correct than wrong answers, or more wrong than correct answers, or the same, print a message with this information. ii. If the student omitted ten or more questions, print a message with this information. d. The process should be repeated for each student. You must decide how to recognize the last student. e. Lastly, the program should print the total number of students in the class, the student ID having the highest score and the one with best correct answer percentage. Let's assume that there will only be one student for each category.
Step by Step Solution
3.43 Rating (140 Votes )
There are 3 Steps involved in it
Heres a C program that records and computes the performance of students on a quiz based on the given requirements It calculates various statistics for ... View full answer
Get step-by-step solutions from verified subject matter experts
