I know this is strange but believe it or not for a project that I’ve been working I needed to get the zodiac sign from a given date. Besides part of not being sure if I could use comparisons within a switch statement I was able to bang this class out pretty quickly.
I assumed the year wouldn’t matter much so I’m dynamically added in the year via the date functions.
I’ve posted it on my github account in case someone randomly needs to do the same.
Leave a Reply
You must be logged in to post a comment.