Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program6_1.py Write a program named program6_1.py that prompts the user to enter six test names and their scores and writes them to a text file

program6_1.py Write a program named program6_1.py that prompts the user to enter six test names and their scores and writes them to a text file named tests.txt. You must use a loop. Each input should be written to its own line in the file. The program should generate a confirmation message when done. See SAMPLE OUTPUT.

SAMPLE OUTPUT

Entering six tests and scores

Enter test name objects

Enter % score on this test 88

Enter test name loops

Enter % score on this test 95

Enter test name selections

Enter % score on this test 86

Enter test name variables

Enter % score on this test 82

Enter test name files

Enter % score on this test 100

Enter test name functions

Enter % score on this test 80

File was created successfully

please help with question 6.2

Write another program named program6_2.py that uses a loop to read and process tests.txt from program6_1.py. The program must output a two-column table (see SAMPLE OUTPUT) showing the test names and scores. When the table is complete, the average should be displayed accurate to one decimal place.

SAMPLE OUTPUT

Reading six tests and scores

TEST SCORE

objects 88

loops 95

selections 86

variables 82

files 100

functions 80

Average is 88.5

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Question in Chemical Engineering Please Write Correct answer 1 4 .

Answered: 1 week ago

Question

2. Place a value on the outcomes.

Answered: 1 week ago