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

Using JavaYour 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
1,2,3,4,5,5
4,4,1,4,2,3
2,2,2,1,2,1
2,1,2,1,2,2
4,4,4,3,2,1
3,2,1,1,1,1
8
2,3,3,4,5,3
4,3,5,2,1,1
2,3,4,1,5,2
2,4,5,3,1,3
2,1,4,5,3,1
5,4,2,1,3,2
4,1,3,5,2,2
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
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
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.
 Using JavaYour task is to write a program that reads the

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!