Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help creating Python code for a lab problem. In this lab, you will write a Python program to calculate the average score and the
Need help creating Python code for a lab problem.
In this lab, you will write a Python program to calculate the average score and the letter grade for each student in the course. You may assume that all the required information is provided to you as a text file.
Input file: The input file is named input.txt and contains the following information: Number of students in the first line Number of test scores in the second line A list of Students' names and their test scores. Test scores are separated by comma. Note: number of students and number of test scores are not fixed. You should always read them from the input file. Here is an example of input file (input.txt): 15 John Smith, 80, 75, 90, 100, 95, 68 Sara Jones, 65, 80, 72,90, 75, 80Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started