Python Problem Three

You are to design, code and test a simple Python program using REPETITIVE CONTROL STRUCTURE using the for/next statement that will process 3 students. The program will be used to determine the if a student will earn a P grade (a score that is greater than 65%)  or a NP grade based on five test scores.

The Average requires your program to maintain a running total, using a variable to accumulate the running total of points each student has obtained. Then dividing this accumulator by the number of students (3) will produce the average total points

In this problem and the following programming problems you will use at least 5 new comments to explain what you are doing in the program.

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

These three students earned the following scores on their five tests:

USER INPUT: The program will request the following data from the user:
  1. Student's first name
  2. The scores for five exams each having 20 questions
PROGRAM PROCESSING:
  1. For each student, the program will calculate the total points, as before and then determine whether the student will receive a P or NP grade.
  2. Average score from all students.
OUTPUT: The following data will be displayed in a short report on the screen . Use a separate line for each student's name, points earned and grade. Also separate the students from one another with a blank line, as shown in the tutorial:
  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 (P or NP)
  5. At the end of the report,after all on the students have been listed, your program will
  6. print summary information including the number students in the class.
  7. Average total points obtained
  Test 1 Test 2 Test 3 Test 4 Test 5
Nicole 18 18 17 19 20
Mike 16 16 17 15 0
Joe 17 15 17 18 17

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 3" for the Subject line. Remember to identify yourself by name and class in the email body.

Return to Assignment Index