subject

2. Now write a program named filereader. py that reads and displays the data in friends. txt. This program should also determine and print the average age of the friends on file. That will require an accumulator and a counter. Use a while loop to process the file, print the data, and modify the accumulator and counter. Then close the file and display the average age accurate to one decimal place. See the Sample Output.. SAMPLE OUTPUT My friend Denny is 24 My friend Penny is 28 My friend Lenny is 20 My friend Jenny is 24 Average age of friends is 24.0

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
You know the right answer?
2. Now write a program named filereader. py that reads and displays the data in friends. txt. This p...
Questions
question
Mathematics, 03.09.2021 02:10
question
Spanish, 03.09.2021 02:10
question
Mathematics, 03.09.2021 02:10
question
Mathematics, 03.09.2021 02:10
question
Chemistry, 03.09.2021 02:10
question
Social Studies, 03.09.2021 02:10
Questions on the website: 13722366