Hey there, If you could help me using C only, that would be fantastic! =) Write
ID: 3630653 • Letter: H
Question
Hey there,
If you could help me using C only, that would be fantastic! =)
Write a program that takes as input a depth (in kilometers) inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is:
C = 10d + 20
where C is the temperature in degrees Celsius and d is the depth in kilometers (a positive number). The temperature in degrees Fahrenheit is given by:
F = (9/5)*C + 32
Your program should include two functions. Function celsius_at_depth should compute and return the Celsius temperature at a depth given in kilometers. Function fahrenheit should convert a Celsius temperature to Fahrenheit.
Your program should interact with the user in exactly this manner:
Enter depth in kilometers=> 15.4
The temperature is 174 degrees C or 345.2 degrees F