(Latest Revision: Thu Apr 26 00:59:53 PDT 2001 ) lab04Problems

lab04Problems



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 follow the directions the labs very closely.  If not, you are going
to develop some bad habits that are going to make it harder for you later
when you try to solve more challenging programming problems.

It seems to me that you did not understand the directions clearly, and so
you did a lot of experimenting, eventually getting it to work somehow, but
not learning the good style points that we want you to learn from the
directions.

So I advise you try spending more time reading and understanding directions,
and see if that helps you improve.

====================
====================
PROBLEMS WITH TESTING:
====================
====================

Problem: Script shows no tests for out-of-range scores.

Problem: Script shows no test of the case where first value is in range but
the second is not.

Problem: Script shows no test of the case where two good values are entered
and the larger value is the first one entered.

Problem: Script shows no test of the case where two good values are entered
and the larger value is the second one entered.


====================
====================
PROBLEMS WITH LEVEL ONE CODE
====================
====================

Problem: level_01 not turned in *** (-10)

Problem: use of global variable*** (-3)

Problem: The statements after the first "else" are not grouped with braces.
This will make the program function incorrectly. *** (-5)

Problem:  Code in the main function is missing the specified if-else
logic.*** (-7)

Problem: Stubs do not return values as specified in the directions *** (-3)

====================
====================
PROBLEMS WITH FINAL LEVEL CODE
====================

Problem: Final Level not turned in ***

Problem: Test script not turned in *** (-10)

Problem: function writes messages that should be written by the main
program.

Problem: multiple return statements

Problem: The statements after the first "else" are not grouped with braces.
This will make the program function incorrectly. *** (-10)

Problem: use of global variable*** (-5)

Problem:  Code in the main function is missing the specified if-else logic.
*** (-10)

Problem: return type of the function has been changed ***

Problem: a parameter was added to the function ***

Problem: adding an exit statment ***

Problem: function does not return a value ***   (-5)

Problem: function does not return the correct value.*** (-5)

Problem: 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.

====================