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

Write a program to take a depth (in kilometers) inside the each as input data; c

ID: 3649042 • Letter: W

Question

Write a program to take a depth (in kilometers) inside the each as input data; compute and display the temperature at this depth in degrees Celsius and Fahrenheit. The relevant formulas are:

Celsius = 10 x (depth) + 20 (Celsius temperature at depth in km)
Fahrenheit = 1.8 X (Celsius) + 32

Include two functions in your program. Function celsiusAtDepth should compute and return the Celsius temperature at a depth measured in kilometers. Function toFahrenheit should convert a Celsius temperature to Fahrenheit.
Analysis
If your program includes functions, then the analysis section should consist of two sections:

Explanation / Answer

#include void celsius_at_depth(void); void fahrenheit(void); int main(void) { depth(); celsius_at_depth(); fahrenheit(); print("Enter depth in kilometers => "); scanf("%lf", &depth); printf("The temperature is %.0f degrees C or %.1F degrees F. ", celsius_at_depth, fahrenheit); return (0); } void celsius_at_depth(void) { return (10*depth+20); } void fahrenheit(void) { return ((9.0/5.0)*celsius_at_depth+32); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote