PYTHON without Def function Problem Statement  Given a grades.txt file of grades on an exam, output a final_grades.txt file in which each score is curved such that the person with the highest score has a score of 100. If someone gets over 100 on the exam, curve all of the grades downward so that the highest score is a 100.  Sample Input 1 (File grades.txt) FirstName LastName Grade Harry Potter 86 Ronald Weasley 85 Hermione Granger 98 Sample Output 1 (File final_grades.txt) FirstName LastName Grade Harry Potter 88 Ronald Weasley 87 Hermione Granger 100 Sample Input 2 (File grades.txt) FirstName LastName Grade Harry Potter 86 Ronald Weasley 85 Hermione Granger 110 Sample Output 2 (File final_grades.txt) FirstName LastName Grade Harry Potter 76 Ronald Weasley 75 Hermione Granger 100

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question

PYTHON without Def function

Problem Statement 

Given a grades.txt file of grades on an exam, output a final_grades.txt file in which each score is curved such that the person with the highest score has a score of 100. If someone gets over 100 on the exam, curve all of the grades downward so that the highest score is a 100. 

Sample Input 1 (File grades.txt)

FirstName LastName Grade Harry Potter 86 Ronald Weasley 85 Hermione Granger 98

Sample Output 1 (File final_grades.txt)

FirstName LastName Grade Harry Potter 88 Ronald Weasley 87 Hermione Granger 100

Sample Input 2 (File grades.txt)

FirstName LastName Grade Harry Potter 86 Ronald Weasley 85 Hermione Granger 110

Sample Output 2 (File final_grades.txt)

FirstName LastName Grade Harry Potter 76 Ronald Weasley 75 Hermione Granger 100

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning