Bowling Assignment
- Due Date: Wednesday, February 22nd no later than 10:00 p.m.
- Purpose: To learn how to use lists to solve problems.
- You must complete this assignment with exactly one partner.
To give you practice working with different people, partners
will be assigned.
Assignment Overview
Create a Python program that correctly scores a game of bowling.
This site
explains the basics of how the scoring works.
Materials
- Take bowling.py and modify it by
adding the missing score_game function (and any other functions
that you want to add). Do not modify the provided functions.
- The file bowling.txt is a sample input
file. The first number in the file is the number of one person games.
For each game, there will be 10 lines where each line shows the
scores of the balls that were rolled for a particular frame.
- The file output.txt shows the output
that the program should produce when bowling.txt is the
input file. Match the format of the output exactly.
Partners
- Cooper - Eli
- Leah - Gabe
- Max - Cory
- Daniel - Andrew
- Anna - Alex
- Jessica - Jericho
- Miles - Amber
- Morgan - Dyllan
- William - Tanner
- Nick - Logan
Grading
- 40 points. Games with open frames are scored correctly.
In an open frame, there is neither a strike nor a spare.
- 20 points. Games with open frames and spares are scored correctly.
- 20 points. Games with open frames, spares and strikes are
scored correctly.
- 10 points. The output format is correct.
- 10 points. The Python code is properly commented, easy to understand
and doesn't contain significant redundancies.
Submission
Place the solution in a file named bowling.py
and e-mail it to Ryan (ryanbockmon@gmail.com) by the deadline.
The title of the e-mail should be JBD, Bowling Assignment, Your Name,
Your Partner's Name.
Late submissions will receive no credit, but partial credit
can be earned by making an ontime submission.