Lab 2: Calendar Module
Logistics
- Due: Tuesday, September 5th no later than 11:59 p.m.
- Partner Information: Complete this assignment individually.
- Submission Instructions: Upload your solution, renamed to
YourFirstName-YourLastName-Lab2.py to the BrightSpace Lab 2
Dropbox.
- Deadline Reminder: Once this deadline passes, BrightSpace will no
longer accept your Python submission and you will no longer
be able to earn credit. Thus, if you are not able to fully complete
the assignment, submit whatever you have before the deadline so that
partial credit can be earned.
Learning Outcomes
- Gain experience using the Python calendar module.
Assignment
- Use the calendar module to write a program that
asks the user when they were born and then uses that information
to produce
this output. In the transcript,
the user was born on October 15, 2004 but make sure your
program works for any valid date.
Grading - 10 points
- 1 point. For any valid input, the person's birthday day
number (e.g. 4 in the sample output) is identified correctly.
- 1 point. For any valid input, the person's birth year
is correctly identified as a leap year (or not) with the word
True (or False).
- 1 point. The birth month calendar where Monday is the leftmost
day is printed correctly.
- 1 point. The birth month calendar where Sunday is the leftmost
day is printed correctly.
- 2 points. The leap years from the person's birth year through 2023
are all correctly printed.
- 2 points. The program runs without any errors.
- 2 points. The output format is matched exactly. For
each type of difference, 1 point will be lost.
If Time Remains
If you want to work with a partner on Program 1 (due 9/15), use
this time to identify a partner or ask your lab TA to help you find
someone. Note: For the vast majority of computing jobs and internships,
the ability to work with one or more teammates is a crucial skill!