Question: Problem 3 Total points: 60 (Implementing if-else (20) + Calculation with decimals (20) + print format (20) ) Valentine's day is around the corner and


Problem 3 Total points: 60 (Implementing if-else (20) + Calculation with decimals (20) + print format (20) ) Valentine's day is around the corner and the campus is lit. In a event day program, a total of 3 couples participated in a couple Team-game. In the game score sheet, we can see that every individual scored some points, but in order to win the game, the couples' score will be multiplied and then evaluated. Say, from Team1, person1 scored 5.2 and person2 scored 3.7; then the Team1 score will be 5.2*3.7 = 19.24 You are given the scores of all the 6 participants. You have to rank them based on their total points. If two teams have equal points in this case equal means that the first 3 digits after decimal is equal), they should be ranked the same. Details in sample input and output. You will also have to format the output according to the sample output. Note: You output should be formatted exactly as shown below. Sample input data: Team1 Participant1: 30.26 Team1 Participant2: 14.29 Team2 Participant1: 4.892 Team2 Participant2: 12.5463 Team3 Participant1: 34.15 Team3 Participant2: 10.00 Sample output: Team Ranking Score Team1 Team2 Team3 432.415 61.376 341.500 Sample input data: Team1 Participant1: 15.25 Team1 Participant2: 12.365 Team2 Participant1: 18.8566 Team 2 Participant2: 10.00001 Team3 Participant1: 2.14 Team3 Participant2: 20.20 Sample Output: Team Ranking Score Team1 Team2 Team3 188.566 188.566 43.228 [Hints: to find match only up to 3 decimal digits, use EPSILON = 0.001] Problem 3 Total points: 60 (Implementing if-else (20) + Calculation with decimals (20) + print format (20) ) Valentine's day is around the corner and the campus is lit. In a event day program, a total of 3 couples participated in a couple Team-game. In the game score sheet, we can see that every individual scored some points, but in order to win the game, the couples' score will be multiplied and then evaluated. Say, from Team1, person1 scored 5.2 and person2 scored 3.7; then the Team1 score will be 5.2*3.7 = 19.24 You are given the scores of all the 6 participants. You have to rank them based on their total points. If two teams have equal points in this case equal means that the first 3 digits after decimal is equal), they should be ranked the same. Details in sample input and output. You will also have to format the output according to the sample output. Note: You output should be formatted exactly as shown below. Sample input data: Team1 Participant1: 30.26 Team1 Participant2: 14.29 Team2 Participant1: 4.892 Team2 Participant2: 12.5463 Team3 Participant1: 34.15 Team3 Participant2: 10.00 Sample output: Team Ranking Score Team1 Team2 Team3 432.415 61.376 341.500 Sample input data: Team1 Participant1: 15.25 Team1 Participant2: 12.365 Team2 Participant1: 18.8566 Team 2 Participant2: 10.00001 Team3 Participant1: 2.14 Team3 Participant2: 20.20 Sample Output: Team Ranking Score Team1 Team2 Team3 188.566 188.566 43.228 [Hints: to find match only up to 3 decimal digits, use EPSILON = 0.001]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
