Speed of sound Python code
Chapter 11 exercise 8- The Speed of SoundPython programming codeThe following table shows the approximate speed of sound in air, water, and steel.
Write a program that displays a menu allowing the user to select air, water, or steel. After the user has made a selection, he or she should be asked to enter thenumber of second the sound will travel in the selected medium =. The program should then display the distance the sound will travel.
Medium SpeedAir 1,100 feet per secondWater 4,900 feet per secondSteel 16,400 feet per second