To determine the speed of the train, we can use the formula:
Speed = Distance / Time
Let's calculate the speed of the train in kilometers per hour.
Given: Length of the train (L) = 1 km Length of the tunnel (T) = 3 km Time taken (t) = 30 seconds
First, we need to calculate the total distance traveled by the train, which is the sum of the train's length and the tunnel's length:
Total Distance (D) = Length of Train + Length of Tunnel D = L + T D = 1 km + 3 km D = 4 km
Next, we convert the time from seconds to hours:
Time (t) = 30 seconds = 30/3600 hours (since there are 3600 seconds in an hour)
Now, we can use the formula to calculate the speed:
Speed = Distance / Time Speed = D / t Speed = 4 km / (30/3600) hours
Simplifying further:
Speed = 4 km / (1/120) hours Speed = 4 km * 120 Speed = 480 km/h
Therefore, the speed of the train is 480 km/h.