Skip to content

farfromguam/ruby-cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSS-Cal

This is the exercise for week 3

Instructions

Print out any month between 1800-3000

like command "cal" in unix

Issues:

  • Leap Years
  • of days in each month

  • Days of the week
  • Justifying text
  • What day of the week does the month start on

Delivery: ruby cal.rb

Integration Tests: asseert_equal(cal 2 2012, ruby cal.rb 2 2012`)

What it does

Print out any month between 1800-3000

It Hadles Correctly...

  • Leap Years
  • of days in each month

  • Days of the week
  • Justifying text
  • What day of the week does the month start on

I have also added

  • Month names as arguments
  • Short month names as arguments
  • Ability to accept partial year and assume century

Things I still need to do

Things I would like to do

Input Options:

  • Accept no arguments, and get current month

Display Features:

  • Accept only year, Print whole Year
  • Accept range of months and print range

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages