Question

Madam Rose, a programming instructor at CIVE is used to have timed quiz in every tutorial session. In this digital era, she wants a simple computer program that will be able display the report of one student at a time. The report will have the following information: number of questions attempted, total marks scored, average score per question, and the ranked average score. Every quiz has a total of 5 questions of equal weight (20 Marks Each), a student should attempt all questions in a quiz. Write a C++ program that will accepts student’s marks and print the average score. Table 2 shows the ranked average score.

NOTE:

  1. Use function rank() that receive average score from the main function to rank the average score.
  2. Use function showrank() that receive the rank from function rank() to print the rank of the average score.
Average ScoreRank
0 – 5Weak
6 - 10Normal
11 - 15Good
16 - 20Best