How would I solve this problem in python language Grades a) Write a program that reads in the names and test grades of 5 students from the data file “grades.txt”. Use the split function to separate the names and test scores and convert the test scores to numeric values. b) Calculate the average of the test scores. c) Display the names, test scores and the average on the screen as follows: Name                      Grade --------------------- Mickey Mouse        90.0 Jane Doe                50.0 Minnie Mouse        95.0 Donald Duck          80.0 Daffy Duck  70.0 Average Grade:     77.0 d) Prompt the user for a new first name, last name and grade. e) Append the files “grades.txt” with the new data in the same format as the existing records.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

How would I solve this problem in python language

Grades

a) Write a program that reads in the names and test grades of 5 students from the data file “grades.txt”. Use the split function to separate the names and test scores and convert the test scores to numeric values.

b) Calculate the average of the test scores. c) Display the names, test scores and the average on the screen as follows:

Name                      Grade ---------------------

Mickey Mouse        90.0

Jane Doe                50.0

Minnie Mouse        95.0

Donald Duck          80.0

Daffy Duck  70.0

Average Grade:     77.0

d) Prompt the user for a new first name, last name and grade. e) Append the files “grades.txt” with the new data in the same format as the existing records.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY