For the app to do well the one thing it’s supposed to do, it helps to set some specifications so we can plan the implementation:
- Read a date from user input in the year, month, day form.
- If the input date matches today’s date, print “Happy Birthday!” on the screen.
- Otherwise, print the number of days, hours, minutes, and seconds until the user’s birthday.
- The app should handle the most likely user input errors, such as no arguments provided, or bad values for year, month, or day arguments.
This specification list is plenty for this exercise. Now for the difficult part–how do we get this thing to work?
Some basic specification