(Latest Revision: 10/29/2001 )
This file shows most of the problems found in the lab #4 results turned in by the class, and some of the advice I gave to people who had errors. ======== ADVICE ======== Please do the assigned reading for the class on time. You need this reading to advance your skill as a programmer. Please read and *study* lab directions in advance. ======== SCORES ======== 0197: L1D+T3 (100 - 7 - 2 == 91) 0241: L1F (100-2 == 98) 0434: F1 (100 - 50 == 50) 0570: L1F+L1G+L1H+F4+F11(OutOfRange)+F14 +T3 (100 - 2 - 3 - 5 - 2 - 2 == 86) 0713: L1E+F3+F12(max) (100 - 3 - 5 == 92) 0890: L1D (100 - 7 == 93) 1822: L1E+ (100 - 3 == 97) 2075: F1 (100 - 50 == 50) 2305: T3 (100 - 2 == 98) 2553: L1G+F4+F11(OutOfRange) (100 - 5 == 95) 2727: 100 3318: 100 3454: L1D+T3 (100 - 7 - 2 == 91) 3484: L1F (100-2 == 98) 4125: L1A+F4+T4 (100 - 10 - 2 == 88) 4748: L1A+F4+T4 (100 - 10 - 2 == 88) 4987: 100 5573: 100 6929: F1 (100 - 50 == 50) 7418: T3 (100 - 2 == 98) 7883: T2+T3 (100 - 2 - 2 == 96) 7974: L1F+L1G+L1H+F4+F11(OutOfRange)+F14 +T3 (100 - 2 - 3 - 5 - 2 - 2 == 86) 8182: L1D+T3 (100 - 7 - 2 == 91) 8284: T2+T3 (100 - 2 - 2 == 96) 8885: 0 8887: L1G+F4+F11(OutOfRange) (100 - 5 == 95) 8991: L1D (100 - 7 == 93) 9317: L1E+ (100 - 3 == 97) 9881: F1 (100 - 50 == 50) ######## Legend ######## ========================= PROBLEMS WITH TESTING: ========================= T1. Script shows no tests for out-of-range scores. (-2) T2. Script shows no test of the case where first value is in range but the second is not. (-2) T3. Script shows no test of the case where two good values are entered and the larger value is the first one entered. (-2) T4. Script shows no test of the case where two good values are entered and the larger value is the second one entered. (-2) ============================= PROBLEMS WITH LEVEL ONE CODE ============================= L1A. Level_01 not turned in (-10) L1B. Use of global variable (-3) L1C. The statements after the first "else" are not grouped with braces. This will make the program function incorrectly. (-5) L1D. Code in the main function is missing the specified if-else logic. (-7) L1E. Stubs do not return values as specified in the directions (-3) L1F. Incorrect indentation of code (-2) L1G. Program does not fit in a 78-column display *** L1H. There is something wrong in the second set of if-else clauses. (-3) L1I. Wrong subject line (-2) =============================== PROBLEMS WITH FINAL LEVEL CODE =============================== F1. Final Level not turned in (-50) F2. Test script not turned in (-10) F3. Function writes messages that should be written by the main program. *** F4. Multiple return statements *** F5. The statements after the first "else" are not grouped with braces. This will make the program function incorrectly. (-10) F6. Use of global variable (-5) F7. Code in the main function is missing the specified if-else logic. (-10) F8. Return type of the function has been changed *** F9. A parameter was added to the function *** F10. Adding an exit statment *** F11. Function does not return a value (-5) F12. Function does not return the correct value. (-5) F13. You have two versions of function "OutOfRange." (-5) You are supposed to create one OutOfRange function and call it once to check score1 and then call it again to check score2. F14. Wrong subject line (-2) ======================================================