Do it!
This one isnt my homework but its in my book and im finding it hard so i want to see you guys do it.
Who ever does it first gets rep i guess.
Also make itnot case sensitive and use java lol. Use JOptionPane if you want but it would be better for me.
The problem is :
Who ever does it first gets rep i guess.
Also make itnot case sensitive and use java lol. Use JOptionPane if you want but it would be better for me.
The problem is :
Write a program that asks the user to enter "air", "water", or "steel", and the distance that a sound wave will travel in the medium. The program should then display the amount of time it will take. You can calculate the amount of time it takes sound to travel in air with the following formula:
Time = Distance/1,100
You can calculate the amount of time it takes sound to travel in water with the following formula:
Time = Distance/4,900
You can calculate the amount of time it takes sound to travel in steel with the following formula:
Time = Distance/16,400