Skip to content

lewislea/Cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cal

###first program written in Ruby. Mimic UNIX Cal. Project for Nashville Software School

####methods utilized (so far) for unit tests include...

  • month_name - able to take integer from intialize argument and match it with the full month name

  • days in_month - calculates how many days in each month. accounts for leap years.

  • leap_year? - returns true or false depending on whether or not the year is a leap year return

  • get_zeller month - calculates the correct month integer for use in zeller's congruence

  • get zeller_year - calculates the correct year for zeller's congruence

  • month first_day - utilizes zellers to calculate which day the first of the month falls on

  • determine first line_spacing - calculates necessary spaces and joins them into a string

  • print one month_header - month/year/first week

  • print one_month -

About

first program written in Ruby. Mimic UNIX Cal. Project for Nashville Software School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages