Python Programming #4 | |
---|---|
Using the techniques presented in the Third Programming Example you are to: | |
| |
|
|
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:
|
|
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:
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:
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 |