Problem 1


  • upto -40 for major mistake in basic structure, for example, no while loop, misunderstanding the question,etc.

  • upto -10 for wrong condition in the while-statement
    -10 for not using counter
    -5 for not incrementing the counter in the loop

  • -10 for not reading exactly 100 numbers, for example, there are two or three input statements in the loop, and the loop repeats 100 times.

  • upto -10 if sum of two previous numbers are not correctly computed
    or the previous numbers are not properly preserved

  • -10 for accepting sequences that are not Fibonacci-like sequences, for example, 1, 2, 3, 1, 2, 3, ....

  • upto -10 for wrong condition in the if-statement
    or no mechanism to compare the numbers at all

  • -10 for not being able to produce correct answer
    -5 a flag is in use, but not set properly
    -10 Too early to say a sequence is Fibonacci-like, etc.

  • upto -5 for each syntax error

  • upto -5 for no or wrong initial values for variables


    Problem 2

    Part a:
    ------

    Note : No points have been cut off for not intializing the variables or intializing them with incorrect values.Though you are supposed to do that,since there was no comment in the code asking you to initialize the variables,you were not penalized for that mistake.

    Part b:
    ------