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;
}
```
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.
Which settings in the Update & Security category control anti-malware functionality?
A. Windows Update B. Recovery C. Windows Defender D. Windows Insider
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
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