Goals
Learn to give detailed instructions.
Learn to submit files on EASEL.
Task - Write, in English, instructions that can be used to
determine if a given date is valid. An individual following
your instructions should start with a year, month and day in
mind and by a series of simple mathematical operations
and observations determine if the date is valid. You can assume
that the person following your instructions will stop when a
conclusion is reached. The algorithm should take leap years
into account.
Primitives:
• Addition
• Subtraction
• Multiplication
• Division with remainders
• Numerical Comparison
Note: This is intended to be simple. Do not make it too complicated.
I just want to get you thinking about giving detailed instructions.
Submit your instruction on EASEL as a text file.