Task Description: Determine the Winner in a Speed Guessing Game
Functionality
Implement a function to determine the winner of a speed guessing game between a player named "SEBI" and his "FATHER". The function calculates the actual speed of a car based on the provided parameters and compares the players' speed guesses to determine who is closer to the actual speed. The output should indicate whether SEBI won, his FATHER won, or if it ended in a draw.
Input Requirements
The function determine_winner will take the following parameters:
s (float): The initial speed of the car in km/h.
sg (float): SEBI's guess of the car's speed in km/h.
fg (float): FATHER's guess of the car's speed in km/h.
d (float): The distance covered by the car in km.
t (float): The time taken to cover the distance in seconds.
Output Requirements
The function should return one of the following strings:
"SEBI" if SEBI's guess is closer to the actual speed.
"FATHER" if FATHER's guess is closer to the actual speed.
"DRAW" if both players' guesses are equally close to the actual speed.
Implementation
The solution must be written in a file named /app/solution.py. The file should contain the complete implementation of the determine_winner function with appropriate calculations and comparisons to determine the winner based on guesses.
Example
python
# Example call
result = determine_winner(60, 70, 50, 1, 120)
print(result) # Output: "FATHER"
Ensure that all computations are done using proper data types and that the function handles edge cases, such as when both guesses are equally close to the actual speed.