Home /
Expert Answers /
Computer Science /
create-a-program-to-determine-whether-a-given-mach-number-is-subsonic-transonic-supersonic-or-hy-pa132
(Solved): Create a program to determine whether a given Mach number is subsonic, transonic, supersonic, or hy ...
Create a program to determine whether a given Mach number is subsonic, transonic, supersonic, or hypersonic. The program uses input function to get the speed of the object in m/s from the command window and store it in a variable named SO. It then determines the Mach number Mach, which is defined as the actual speed divided by the speed of sound SS. The speed of sound is 343m/s. From the calculated NM, the speed can be classified as follows: If a nonpositive value is entered, a warning message of "Nonpositive value is entered." will be shown in the command window. Otherwise, show a message as the following example for a speed of 100m/s : >> Subsonic, Mach number is 0.29 .