Python Programming #4
Using the techniques presented in the Third Programming Example you are to:
  • Design, code and test the a simple Python program using a the variable controlled for / next loop statement to control the repetitive structure.
  • As was done in the previous homework assignment:
  • The program will determine a student's grade based on 5 test scores
  • The program will request a student's first name
  • The program will request the student's 5 exam scores

As before, each test is worth 20 points. The program will determine whether or not the student passes, based on a score greater than 65% of the total. This new program will be designed to grade a varying number of students, not just 3 students as in the previous homework assignment.
User Input --
The program will first request the number of students to be graded. Then, for each student, it will request the following data:
  1. Student's First Name
  2. The scores for 5 exams each having 20 questions (i.e. each test has a point value from 0 to 20)
Program Processing --
As before, the program will calculate the total correct questions and determine whether the student will receive a "P" or "NP" grade.
Output --
Unlike the previous 2 homework assignments in which you simply printed each data item on a separate line running down the page, you will:
  • List each student's name
  • List each student's test score
  • List each student's total points
  • List whether the student has received a "P" or "NP" grade

These are to be listed in a tabular format (rows and columns). You will use Python's print format statement (as shown in the example) to create your output in rows and columns.
At the end of the report, after all of the students have been listed, your program will print summary information including:
  • The number of students in the class
  • The average total points obtained

Again, the average total points obtained requires your program to maintain a running total (accumulator) of the total points each student has obtained.
In this assignment, you will add at least 5 new comments to explain what you are doing in the program
When you are through coding your program, do the following:
Second Part of Assignment 14