Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python program to Compute a letter grade for each student based on data in a file. A file ( input.txt ) has student entries of

python program to Compute a letter grade for each student based on data in a file.

A file (input.txt) has student entries of the form (lastname-firstname-score-totalpoints)

Doe-John-100-100

Doe-Jane-85-100

Smith-Andrew-75-100

Winglow-James-60-100

Read in this file and compute the percentage points scored, and convert it to a letter grade as follows:

> 90%, A

>= 80% but <90%, B

>= 70% but <80%, C

<70%,F

Write the resulting rows to a new file (output.txt) with the form:

Doe-John-100-100-A

Doe-Jane-85-100-B

Smith-Andrew-75-100-C

Winglow-James-60-100-F

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 Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

Formation of forward bloc by subha bose was .....?

Answered: 1 week ago

Question

The S.I. unit of change is........?

Answered: 1 week ago

Question

At the generating station power is..........?

Answered: 1 week ago

Question

The maximum number of electrons in a shell can be?

Answered: 1 week ago