Question: CODE MUST BE IN PYTHON. PLEASE READ ALL REQUIRMENTS. OLA 7: Calculate Student Averages Due: Mon Nov 5, 2018 by 11:59 PM-may be turned in

CODE MUST BE IN PYTHON. PLEASE READ ALL REQUIRMENTS.  CODE MUST BE IN PYTHON. PLEASE READ ALL REQUIRMENTS. OLA 7:
Calculate Student Averages Due: Mon Nov 5, 2018 by 11:59 PM-may be

OLA 7: Calculate Student Averages Due: Mon Nov 5, 2018 by 11:59 PM-may be turned in until Nov 12 by 11:59 PM with reduced points (per Open Lab- Project guidance found in the course syllabus) Assignment id: ola7 Assignment type: Project Required Files: ola7.py, myout.log Lab description For this lab, write a complete Python script that reads Student ID numbers and grades from a file, calculates the average of the grades, and outputs the results to the screen and to a file. The input will come from a text file named scores.txt, which consists of multiple sets of a student ID number followed by three test scores. The contents of a file containing the scores of four students are shown below (the student ID number is of the form MXX where XX is a two-digit number): MO1 76 89 82 MO2 91 81 83 92 93 90 M04 86 91 The output of the above data to the screen will be of the following form (note: 2 decimal places): Student MO1 average is 82.33 Student M02 average is 85.00 Student MO3 average is 91.67 Student M04 average is 88.33 Only the student ID number and average score (separated by a space and to 2 decimal places) are written to the output file: MO1 82.33

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!