I am supposed to write a program to take a depth (in kilometers) inside the earth as input data; compute and display the temperature at this depth in degree Celsius and degree Fahrenheit. The relevant formula are
- Celcius = 10 (depth) + 20 (Celsius temperature at depth in Km)
- Fahrenheit = 1.8 (Celsius) + 32
Include two functions in your programs. Function CelsiusAtDepth should compute and return the Celsius temperature at a depth measured in Km. Function Fahrenheit should convert a Celsius temperature to Fahrenheit
- Celcius = 10 (depth) + 20 (Celsius temperature at depth in Km)
- Fahrenheit = 1.8 (Celsius) + 32
Include two functions in your programs. Function CelsiusAtDepth should compute and return the Celsius temperature at a depth measured in Km. Function Fahrenheit should convert a Celsius temperature to Fahrenheit
Comment