Calculate how many Btu's of heat are delivered into a house given the number of gallons of oil burned and the efficiency of the furnace.
What will be an ideal response?
```
int main()
{
const double BTU_PER_BAR= 5800000; // energy equivalent of a barrel
const int GAL_PER_BAR = 42; // gallons per barrel
int gallons; // gallons of oil burned
double efficiency; // efficiency of the oil furnace
cout << endl << "How many gallons of oil were burned?=> ";
cin >> gallons;
cout << "What is the percent efficiency of the oil furnace?=> ";
cin >> efficiency;
double heat = double(gallons) / GAL_PER_BAR * BTU_PER_BAR
* (efficiency / 100.0);
cout << endl << "There were " << heat
<< " Btu's of heat delivered to the house." << endl << endl;
return 0;
}
```
You might also like to view...
In the accompanying figure, click the item marked ____ to display the subfolder file list.
A. 1 B. 2 C. 3 D. 4
A circular reference:
A) is a rule that governs the structure and components for functions. B) is an input such as a cell reference or a value needed to complete a function. C) occurs when a formula directly or indirectly refers to the cell containing the formula. D) is a predefined formula that performs a calculation.
What do hackers use malicious port scanning to accomplish?
A. The "fingerprint" of the operating system B. The topology of the network C. All the computer names on the network D. All the usernames and passwords
Which of the following is an advantage of leasing a frame relay circuit over leasing a dedicated circuit?
a. You are guaranteed to receive the maximum amount of bandwidth specified in the circuit contract b. You pay only for the bandwidth you require. c. The paths that your data will take are always known. d. Frame relay is a newly established network technology with more features than other technology.