Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I need the code in Python code. I need a program to pull data from a file called Grades.txt, it has to be made

Hello I need the code in Python code. I need a program to pull data from a file called Grades.txt, it has to be made and the data should look like this:

Patrick Mahomes

12

36

DesHAun waTson

9

apple

drew BrEeS

55

15

JULIO JONES

15

45

I need the program to determine the grade the user will recieve based off of this data:

Min Study Hours-15 Grade:A

Min Study Hours12 B

Min Study Hours9 C

Min Study Hours6 D

Min Study Hours0 F

We will assume the same for each class study hour wise. (A class is 3 credits, so if the user is taking 12 credits it would be 4 classes.) Max credits a user can take is 55, all user data must be validated. I need all data post running the program to be displayed in proper case. I need the program to determine the grade based on the minimum study hour to grade data above and the program then will write the updated data to a file called HowManyHours.txt. All data must be in proper case and should look like this after the program has determined the grade and we are ready to write to the file: Example format HowManyHours.txt file

Full Name:Aaron Rodgers

Credits:12

Study Hours:60

Grade:A

Full Name:Joe Theismann

Credits:15

Study Hours:60

Grade:B

Full Name:Philip Rivers

Credits:3

Study Hours:15

Grade:A

Please and thank you

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions