Skip to content

Instantly share code, notes, and snippets.

View trowbrsa's full-sized avatar

Sarah Trowbridge trowbrsa

View GitHub Profile
@trowbrsa
trowbrsa / month_1_assessment.md
Created October 17, 2015 18:53 — forked from jbuechs/month_1_assessment.md
Month 1 Assessment - Blank Answer Sheet

#1 Ruby Fundamentals

##1.1 Variables and Substitution 1.1.1

1.1.2

1.1.3

1.1.4

@trowbrsa
trowbrsa / LTP_2_5.rb
Created September 24, 2015 03:11
Sarah Trowbridge's answers for Learning to Program exercise 2.5.
#Write a program that tells you the following:
hours_in_a_year = (24 * 365)
puts "There are #{hours_in_a_year} hours in a year."
minutes_in_a_decade = ((60 * 24 * 365) * 10)
puts "There are #{minutes_in_a_decade} minutes in a decade."
sarah_t_age_in_seconds = ((60 * 60 * 24) * 365 * 27.5)
puts "At the time of writing this code, my age in seconds is approximately #{sarah_t_age_in_seconds} seconds."