CS 1713 Introduction to Computer Science, Spring 2011 Exam 2 Comments

The exam average was 64 and the median was 61.
If you got below a 50 on this exam, you need to take serious action.

This material is difficult and it takes some time to be comfortable using it.
The goal to to master this material by the time the course is over.
If you are doing all of the labs and projects and participate in class, you can make up for low grades at the beginning of the course by doing well on the final exam.

You should be spending at least 12 hours a week outside of class on this course.
If you are not doing well and are spending less time than this, you need to make a change.

Some comments on particular problems:

  1. Be careful in counting.
  2. You must return a double, not an int. Know how to test for 0 length array. Be careful about integer division.
  3. The two parts are logically similar. For the second part you need to know how to work with arrays of objects.
  4. This one might be easier to do by going through the second column.
  5. You cannot change a String once it has been created.
    You cannot do s.charAt[i] = ...
    You cannot use .equals on chars.
  6. Some student did not write a compareTo method.
    The attributes must be private.
    Only one set method was required.
    Approximate grading for this was:
       5 points for class and attributes
       5 points for the constructor
       6 points for the accessor and modifier methods
       5 points for compareTo method
       4 points for toString method
  7. You must keep track or which Rectangle has the largest length so far, or you must keep track of both the largest length and its corresponding width.
  8. You need to put a box around each Triangle object.
    The Triangle objects should not look like arrays.
  9. Part b) did not have to be done with a loop.

Exam 2      solutions