Skip to content

Instantly share code, notes, and snippets.

View jefferyhsu's full-sized avatar

Jeff Hsu jefferyhsu

View GitHub Profile
@jefferyhsu
jefferyhsu / gist:3094428
Created July 11, 2012 23:31
Intro to Ruby: Quiz 1 (from Jeff Hsu)
# Write a program that tells you the following:
#
# Hours in a year. How many hours are in a year? - 6pts
# Minutes in a decade. How many minutes are in a decade? - 6pts
# Your age in seconds. How many seconds old are you? - 6pts
#
# Define at least the following methods to accomplish these tasks:
#
# seconds_in_minutes(1) #=> 60 - 3pts
# minutes_in_hours(1) #=> 60 - 3pts