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...
The three types of patents are: utility patents, design patents, and ________.
Fill in the blank(s) with the appropriate word(s).
Which of the following operators is used to represent division in Calc?
A) / B) * C) + D) X
The Translate button is located in the Language group on the ________ tab
A) View B) Review C) Home D) Insert
A technician sees suspicious traffic coming from a computer connected to a WAP. Which of the following can be used to stop this traffic while troubleshooting the problem?
A. tracert B. QoS C. ipconfig D. MAC filtering