The University of Alabama in Huntsville Electrical & Computer Engineering CPE 112 Fall 2002 Test 1 Solution 1. True 2. False 3. True 4. True 5. False 6. b 7. d 8. a 9. b 10. a 11. d 12. algorithm 13. compiler 14. constant 15. sequential 16. _out_of_time, payRate, and timeOfDay are valid identifiers 17. a. floating point 13.3 b. integer 2 c. integer 5 d. floating point 13.75 18. a. 0.235 b. 2.25 c. 44.2 d. 5 e. 0 f. 21 g. 8 h. 5 i. 3 19. exp = (a*c+d)/(e*(u-v)); 20. string first_name = "Albert"; 21. const float PI = 3.14159; 22. int total; float average; 23. a. someInt = int(float(5) + someFloat * float(3)); b. someFloat = 2.5 * float(someInt) / someFloat; 24. someInt + 1 25. cout << fixed << setprecision(2) << setw(15) << pay << endl;