14. See cpp file.
15.
3 * x
(3 * x) + y
(x + y)/7
((3 * x) + y)/(z + 2)
16. bcbc
17. (1/3) * 3 is equal to 0
18. See cpp file.
19. a. f is assigned 1
b. 9/5 to C++ is division by two integers which is 9/5=1 (remainder is dropped).
Programmer wanted to divide two doubles which is 9.0/5.0.
c. Fixed code:
double c = 20; double f; f = (9.0/5.0) * c + 32.0;
20. 030406
28. 10 7 4 1
29. No output.
30. 10 7 4 1
31. -42
32. While statement will execute only if condition is true. Do-while statement will always execute once then condition is checked.
33. infinite loop, i can't type that many numbers in my lifeimte!