sonam1604/sea-c17-ruby — pull request #2 by ryansobol (2014-07-16 19:33:02+00:00)
Title: Grade for Class 3 Assignment

Good job, Sonam.

#### Exercise 1

Works great, 4 points.

* Spaces around operators helps readability :eyes:
* Blank lines help readability :space_invader:

#### Exercise 2

So close. It runs without crashing, but unfortunately, it doesn't generate the correct output. 3 points.

* The output doesn't match the provided sample output exactly. I know the differences are minor, but paying attention to details is an important skill to start developing in this course.

My other comments are:

* Generating a random number isn't cheap and doing it inside a `while` loop is computationally expensive. I provided a "cheaper" technique for you to compare.
* Spaces around operators helps readability :space_invader:
* Blank lines help readability :eyes:

#### Exercise 3

The same mistake is present as in exercise 2. No need to penalize you again for copy-and-paste error. 4 points.

The same comments also apply.

#### Exercise 4

So close. It runs without crashing, but unfortunately, it doesn't generate the correct output. 3 points.

* The program doesn't correctly handle the case when a year is divisible by 100 and 400. Re-read the question and read up on [how leap years work](http://kalender-365.de/leap-years.php).

##### Score

14 / 16 :+1: