Python Problem Two

You are to design, code and test a simple Python program using SEQUENTIAL CONTROL STRUCTURE. The program will be used to find the total of points a student has earned from five tests and assign either a P (the score is greater than 65%) or NP grade.

Your program must meet the following criteria:
USER INPUT: The program will request the following data from the user
  1. first name
  2. The scores for five exams each having 20 questions (i.e. each test has a point value from 0 to 20)
PROGRAM PROCESSING:
  1. The program will calculate the total questions answered correctly, and then determine which grade (P or NP) to assign.
OUTPUT: The following data will be displayed in a short report on the screen (use a separate line for each):
  1. Report title with the program author's name
  2. Student's name
  3. The total number of questions answered correctly
  4. The grade assigned

When you are through coding your program, test it using the following scenario:

  Test 1 Test 2 Test 3 Test 4 Test 5
Nicole 18 18 17 19 20

Be sure to check your program's accuracy by working the test data out by hand. Also, you can compare the layout of your report to the tutorial report to make sure you are following the techniques introduced in the tutorial. Look for and correct misspelling and inconsistent capitalization in titles and labels.

You will need to take a Screen Shot of your run for submission with your program file.

Submit your program file (.py) and Output screen shot in an email sent to me
Use "Programming Assignment 2" for the Subject line. Remember to identify yourself by name and class in the email body.

Return to Assignments Index