## Introduction

Calculate if a given year is a leap year.

## Design

The program will

- Ask the user for a year (positive integer)
- Tell the user if it is a leap year or not
- Loop until the user enters a "quit" command
- Generate an error message if the the year
is not a positive integer or the "quit" command
- Define a minimum and maximum year that is allowed to be entered

## Leap Year Calculation

if year is not divisible by 4 then not leap year
else if year is not divisible by 100 then leap year
else if year is divisible by 400 then leap year
else not leap year

*From Wikipedia - Leap Year*

## Try This

Given a date, what day of the week is it?

(Day,Month,Year) =
(Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday)