Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that reads a student name followed by five test scores. The program should output the student name, the five test scores,

Write a program that reads a student name followed by five test scores. The program should output the student

Write a program that reads a student name followed by five test scores. The program should output the student name, the five test scores, and the average test score. Output the average test score with two decimal places. The data to be read is stored in a file called test.txt. The output should be stored in a file called testavg.out. Input Output A file containing the student name and the five test scores. A sample input is: Andrew Miller 87.50 89 65.75 37 98.50 The student name, the five test scores, and the average of the five test scores, saved to a file.

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

Python Read input from file with opentesttxt r as inputfile inputdata inputfilereadline... 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

Introduction To Statistics And Data Analysis

Authors: Roxy Peck, Chris Olsen, Jay L. Devore

3rd Edition

0495118737, 9780495118732

More Books

Students also viewed these Programming questions

Question

Compute the value of B for the following diagram: i- 15% 100 100

Answered: 1 week ago

Question

What is learning?

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago