CSCI 107 Assignment 4
- Due Date: Friday, March 3rd no later than 11:59 p.m.
- Partner Information: You must complete this assignment with
exactly one other classmate.
- Submission Instructions: Upload your solution, entitled
YourFirstName-YourLastName-PartnerFirstName-PartnerLastName-Assignment4.py
to the BrightSpace Assignment 4 Dropbox. Note:
Only one person should submit the team's solution. If both
teammates submit a solution, the submission that will be graded
is the one from
the partner whose last name comes alphabetically first.
- Deadline Reminder: Once the submission deadline passes, BrightSpace
will no longer accept your 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.
Introduction
The purpose of this assignment is to (1) gain proficiency with
functions and (2) learn how to work with a partner.
Specifically, you will learn to define
functions that integrate properly with an existing program.
Assignment
Add the two missing
functions to flag.py (rename flag.py
according to the instructions above) so that this
Betsy Ross Flag is drawn.
Hint: Read the comments in flag.py!
Requirements and Grading
Note: To earn points, you must not modify the provided
code at all. Just add the two missing functions and their comments!
- 20 points - You worked with a partner and submitted a joint
solution.
- 10 points - The draw_star function has the correct parameters.
- 5 points - The draw_star function uses an appropriate for loop.
- 5 points - The draw_star function is commented properly.
- 5 points - The draw_star solution is easy to understand.
- 10 points - The draw_rectangle function has the correct parameters.
- 5 points - The draw_rectangle function uses an appropriate for loop.
- 5 points - The draw_rectangle function is commented properly.
- 5 points - The draw_rectangle solution is easy to understand.
- 30 points - Your flag replicates the provided drawing.
(For each type of difference, 6 points will be deducted.)