Problem 4
Give a \(\mathrm{C}++\) statement that will increase the value of the variable length by \(8.3 .\) The variable length is of type double.
Problem 8
Give an output statement that will produce the following message on the screen: The answer to the question of Life, the Universe, and Everything is 42
Problem 10
What statements should you include in your program to ensure that, when a number of type double is output, it will be output in ordinary notation with three digits after the decimal point?
Problem 18
Write a complete \(\mathrm{C}_{++}\) program that reads two whole numbers into two variables of type \(i n t,\) and then outputs both the whole number part and the remainder when the first number is divided by the second. This can be done using the operators / and \(\%\)
Problem 26
Consider the quadratic expression \\[ x^{2}-4 x+3 \\] Describing where this quadratic is negative involves describing a set of numbers that are simultaneously greater than the smaller root (+1) and less than the larger root \((+3) .\) Write a \(\mathrm{C}++\) Boolean expression that is true when the value of this quadratic is negative.
Problem 37
Write a complete \(C++\) program that asks the user for a number of gallons and then outputs the equivalent number of liters. There are 3.78533 liters in a gallon. Use a declared constant. since this is just an exercise, you need not have any comments in your program.