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.
USER INPUT: |
The program will request the following data from the user:
|
||||
PROGRAM PROCESSING: |
|
||||
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:
|
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 |