Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C Language ( Please dont give me code for C++. I want the code for C) Write a pr

ID: 3637396 • Letter: C

Question

C Language ( Please dont give me code for C++. I want the code for C)

Write a program that calculates the speed of sound (a) in air given
the temperature T (in degrees Fahrenheit). Formula to compute the
speed in ft/sec:
a = 1086 * sqrt((5*T + 297)/247)
Be sure that your program does not lose the fractional part of the
quotient in the formula shown.
Remarks: Please replicate the exact text of the prompts and the
output. Make sure that the answer is printed with two digit precision
(i.e., "%.2f" in printf). Even though the text must be the same, the
numbers may be different depending on the user input.
============= START OF SAMPLE RUN =======================
Enter the temperature in degrees Fahrenheit:
92.5
The speed of sound in feet per second is 1904.34 at this temperature.
============= END OF SAMPLE RUN =======================

Explanation / Answer

please rate - thanks

#include <stdio.h>
#include <conio.h>
#include <math.h>
int main()
{double temp,speed;
printf("============= START OF SAMPLE RUN ======================= ");
printf("Enter the temperature in degrees Fahrenheit: ");
scanf("%lf",&temp);
speed=1086.*sqrt((5*temp+297.)/247.);
printf("The speed of sound in feet per second is %.2f at this temperature. ",speed);
printf("============= END OF SAMPLE RUN ======================= ");
getch();
return 0;
}