I am writing this program in python:
1) distance = int(input("Enter the distance that a sound wave will travel"))
//In line one we are getting the user input
// Now it is time to calculate by using formula
2) sound_to_travel_in_air_time = distance/1100
3) sound_to_travel_in_water_time = distance/4900
4) sound_to_travel_in_steel_time = distance/16400
// After calculating now it is the time to print their values on the console
5) print("Sound to travel in air time is: ",sound_to_travel_in_air_time)
6) print("Sound to travel in water time is: ",sound_to_travel_in_water_time)
7)print("Sound to travel in steel time is: ",sound_to_travel_in_steel_time)
This is the complete program i hope you get the idea.