Answer:
students will be more attentive and active
Explanation:
Using the knowledge in computational language in C++ it is possible to write a code that asks the user to enter a number of gallons.
<h3>Writting the code:</h3>
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>int main()</em>
<em>{</em>
<em> float gallons, cufeet;</em>
<em> cout << "\nEnter quantity in gallons : ";</em>
<em> cin >> gallons;</em>
<em> cufeet = gallons / 7.481;</em>
<em> cout << "Equivalent in cublic feet is " << cufeet << endl;</em>
<em> return 0;</em>
<em />
<em>}</em>
See more about C++ at brainly.com/question/19705654
#SPJ1
Answer:
Hi!
The correct answer is D. Depending on the value of x, either all three of the print statements will execute or none of the statements will execute
Explanation:
The IF statement checks the value of x and executes the next lines of code inside of the IF condition in case that is TRUE, else it skips up without execution of the lines inside the IF condition.
For example:
var x = 5;
if(x==5) { <em>// if 5=5? -> true -> executes the lines inside the If statement.</em>
print ("Is 5")
print ("Is Still 5")
print ("Third 5")
}