CSCI 107 Assignment 4
- Due Date: Wednesday, October 5th no later than 11:59 p.m.
- Partner Information: You may complete this assignment individually
or with exactly one classmate. If you work with a classmate
and only one joint solution is submitted for the two of you,
you will each receive a bonus 10 points
that can increase your score on this assignment to a maximum
of 100 points.
- Submission Instructions (working alone): Upload your solution,
entitled YourFirstName-YourLastName-Assignment4.py
to the BrightSpace Assignment 4 Dropbox.
- Submission Instructions (working with exactly one classmate): Upload your solution, entitled
YourFirstName-YourLastName-PartnerFirstName-PartnerLastName-Assignment4.py
to the BrightSpace Assignment 4 Dropbox. Note: If you work with a
partner, only one person should submit a solution. If you both
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 gain proficiency with
functions. 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!
- 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.
- 50 points - Your flag replicates the provided drawing.
(For each type of difference, 10 points will be deducted.)