Question: Your task is to write a program that reads the student ratings and calculates the difficulty level for each course. The difficulty level is calculated

Your task is to write a program that reads the student ratings and calculates the difficulty level for each course. The difficulty level is calculated based on the average total ratings.
For example, for Course 1:
Course difficulty level =1+5+3+3+1+4+2+2+4+310=2.8
Input
10
1,1,1,1,1,1
5,5,5,5,5,5
3,3,3,3,3,3
3,3,3,3,3,3
123455
441423
2,2,2,1,2,1
21212122
444321
3,2,1,1,1,1
8
233453
4,3,5,2,1,1
2,3,4,1,5,2
2453313
2,1,4,5,3,1
5421332
413352
444321
0
The input consists of a few test cases. For each test case, the first line of input is a positive integer )N(100 which indicates the number of students. The following N lines contain 6 integers which represent the ratings cast by the students.
Output
number of students. The following N lines contain 6 integs
Output
Case #1: Course TTTK1114
Course 1: 2.8
Course 2: 2.7
Course 3: 2.5
Course 4: 2.6
Course 5: 2.6
Course 6: 2.5
Case #2: Course TTTT1713
Course 1: 3.1
Course 2: 2.9
Course 3: 3.8
Course 4: 3.0
Course 5: 2.8
Course 6: 1.9
For each test case, output a line in the format "Case #x: " where x is the case number (starting from 1), followed by the name of the mo difficult course according to students' rating. In the next 6 lines are the output of the ratings for each course. Format the output in 1 decimal place. Refer to the sample output.
Test Case(s)
 Your task is to write a program that reads the student

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!