Final Project (There are 4 parts – they will be posted one at a time)
For all parts of this project the rules are:
1. Use only material covered in this class. See Slack announcement from a few weeks ago for why
this is necessary. If in doubt, ask.
2. Write the comments first! If the comments appear to just “rephrase” the Python code, you will
lose points. Good comments are worth a lot!
3. When reading the file you may NOT read the entire file into a giant list. Read through the file
and process each line as you read it.
Part 4:
1. Write a main function which presents a “menu” asking the user which task they would like to
do. Use the tasks from part 1, 2, 3 and 4 as your menu options. This is worth 10 points.
2. If the user enters 1, 2 or 3 your main function should ask for any necessary information and then
call the appropriate function (from part 1, 2 or 3) and then display the menu again. Be sure
there is a little space after the displayed results from the function before the menu appears
again. This is worth 20 points of the grade.
3. If the user enters 4, your main function should display a “good bye” message and stop. This is
worth 5 points.
4. If the user enters ANYTHING other than 1, 2, 3 or 4 your main function should display an
appropriate message (“invalid menu choice”) and then display the menu again. This is worth 20
points of the grade!!!
5. The rules for user input (invalid state, etc) from the previous parts still apply.
6. You are welcome to use the posted solutions from parts 1, 2 and 3. You will need to remove any
extra comments that don’t apply as well as be sure there is a MEANINGFUL comment above
each line of code.
7. Comments must be meaningful. Comments such as “set variable to zero”, “loop”, etc will cost
you some points! Remember – comments do not paraphrase the Python code – comments
describe WHAT you’re trying to accomplish in the next part of the code. This is worth 20 points
of the grade.
8. Remember – there are 3 rules at the top of this page. Violating rules 1 and/or 3 will result in a
very low grade and/or an academic integrity violation. When in doubt, ask.
9. There will be a video posted by 12/6 illustrating the program running.
10. This is due FRIDAY December 9 at 8 pm. Help is available until 3 pm Friday.
评论0
最新资源