13849 - Score Calculation   

Description

 

Please help TAs to calculate the final score of students based on below grading policies.smiley

 

The grading policies of this classroom

  • Test 1: 40%
  • Test 2: 60%
  • Bonus Point(Based on your participation in the class, there's no limit of the bonus point)

Input

 

Multiple lines of score information, where each line is an answering record for a user account.

 

The format of each line is given as: 

Student Name, Test Result of Test1, Test Result of Test 2, Bonus Point

Examples are shown below. 

Jerry,1/2,3/3,10

 

The 1/2 of Test Result denotes correct_answers/total_questions for Test 1.

Note: The score of a student is calculated as the number of correct answer divided by the total number of test question!

 

Output

 

The score for each student should be output with the format:

Student_Name:Jerry,Final_Score:90.00


The scroe of Jerry is caculated as  1/2*40 (Test 1) + 3/3*60(Test 2) + 10(Bonus Point) = 90

Note that

  1. The order of the output score should follow the same order of the input.
  2. Before doing addition for each Test score. Each test score should be converted in 2 decimals first
  3. The Final score should also have 2 decimals.

Sample Input  Download

Sample Output  Download

Tags




Discuss