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...

MC To select specific fields from a table, replace the asterisk in a SELECT query with a________list of the field names to select.

a) comma-separated. b) semicolon-separated. c) hyphen-separated. d) None of the above.

Computer Science & Information Technology

Which settings in the Update & Security category control anti-malware functionality?

A. Windows Update B. Recovery C. Windows Defender D. Windows Insider

Computer Science & Information Technology

Because Tahoma and Trebuchet MS are decorative fonts, they can be a little difficult to read on a Web page

Indicate whether the statement is true or false

Computer Science & Information Technology

What does APIPA stand for?

A) Automatic Public IP Addressing B) Automatic Private IP Addressing C) Automatic Protocol Inspection Per Asset D) Automatic Port IP Assignment

Computer Science & Information Technology