|Due: March 7, 2012||Points: 20|
As for all earlier assignments, please put refinements for all your programs into one file called “refinements.txt” or “refinements.pdf”, and error journal entries for all your programs into one file called “errors.txt” or “errors.pdf”.
Submit this program in the Extra Credit 6 area of SmartSite—not in the Homework 6 area.
Extra Credit: (20 points) Write a function to determine whether a year, given as the argument, is a leap year. A year is a leap year if it is divisible by 4, unless it is divisible by 100 and not 400. So 2000 was a leap year, but 2100 and 2200 will not be. Then write a program that asks the user to enter a year and uses the function you wrote to determine whether the year is a leap year. The program then prints the result.
Submit: Please turn in your program in the file “leap.py”.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012