Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribed

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, 80

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions