ok, im a little lost on how to write this code out. im suppose to ask the user to input "air" "water" or "steel".. heres the question Medius Speed
Air 1100 feet per second
Water 4900 feet per second
Steeler 16,400 feet per second
now i have to write a program that ask the user to enter "air" "water" or "steel" and the distance that a sound wave wil travel in the medium. The program should then display the amount of time it will takes and calculate the amount of time it takes sound to travel in air with the following formula.
Time=distance/1100
you can calculate the amount of time it takes sound to travel in steel with the following formula
Time = distance/4900
anyone here knows how to do this?