Speed of Sound The following table shows the approximate speed of sound in air, water, and steel. Medium                               Speed Air...


Speed of Sound


The following table shows the approximate speed of sound in air, water, and steel.


Medium                               Speed


Air                                          1,100 feet per second


Water                                   4,900 feet per second


Steel                                      16,400 feet per second


Create an application that displays a set of radio buttons allowing the user to select air, water, or steel. Provide a text box to let the user enter the distance a sound wave will travel in the selected medium. Then, when the user clicks a button, the program should display the amount of time it will take. Format the output to two decimal places.


Input validation: Do not accept distances less than 0. Always check for nonnumeric data.


Use the following test data to determine if the application is calculating properly:


Medium and Distance                    Speed of Sound


Air, 10,000 feet                                                 9.09 seconds


Water, 10,000 feet                          2.04 seconds


Steel, 10,000 feet                             0.61 seconds

Nov 22, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here