Calculate temperature (degrees F and C) at a given depth inside the earth (km)

What will be an ideal response?

```
int main()
{
double depth;
double celsius;
double fahrenheit;
cout << "Enter depth (in kilometers) inside the earth: ";
cin >> depth;
celsius = 10 * depth + 20;
fahrenheit = 1.8 * celsius + 32;
cout << endl<< "At " << depth << " Kilometer(s) inside the earth,";
cout << endl << "the temperature is..." << endl;
cout << " " << celsius << " degrees Celsius" << endl;
cout << " " << fahrenheit << " degrees Fahrenheit" << endl;
return 0;
}
```

Computer Science & Information Technology

You might also like to view...

________ is a state, when enabled, that can prevent others from changing the underlying formulas and preset formatting in a cell or group of cells

Fill in the blank(s) with correct word

Computer Science & Information Technology

If you choose to use a vocabulary's namespace as the default namespace for a schema, you do not have to qualify any references to customized objects in the ____ namespace.

A. catalog B. EBNF C. limited D. target

Computer Science & Information Technology