hi...
Problem # 4:
Modify problem 4 in hw6 to record students score in each question and the question shown to the user. For example, Rectangle Red 2/5 means that the student was shown a red rectangle 5 times and he got them correct only two times (attempt count include attempts done while repeating the question before a correct answer). Keep in mind that the student will keep on playing until he enters a 0 as answer fo a question and this 0 is not included in the statistics.
You then have to print a table, which contains a statistic of student’s performance. Your table should include the shape shown, color, number of attempts, number of correct answers and average score, which is equal to number of correct answers / number of attempts.
Problem # 4:
Modify problem 4 in hw6 to record students score in each question and the question shown to the user. For example, Rectangle Red 2/5 means that the student was shown a red rectangle 5 times and he got them correct only two times (attempt count include attempts done while repeating the question before a correct answer). Keep in mind that the student will keep on playing until he enters a 0 as answer fo a question and this 0 is not included in the statistics.
You then have to print a table, which contains a statistic of student’s performance. Your table should include the shape shown, color, number of attempts, number of correct answers and average score, which is equal to number of correct answers / number of attempts.
Shape Color Attempts Corrct Answer AverageScore (Correct/Attemp)
Rectangle Red 2 2 1
Rectangle Blue 1 0 0
Rectangle Green 3 2 0.667
Oval Red 0 0 0
Oval Blue 1 1 1
Oval Green 2 1 0.5
Circle Red 3 1 0.333
Circle Blue 4 3 0.75
Circle Green 5 4 0.8