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
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++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 3PP: (Data processing) Write a C++ program that allows the user to enter the following information from...
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 5 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,