Question: Can you please do this in python cslabserver2.esmtsuedu/labs/1170/HTML.pythonAab12-PE8html Exercise 8: Program exercise for processing records in a file Write a compiete Python program including minmal
cslabserver2.esmtsuedu/labs/1170/HTML.pythonAab12-PE8html Exercise 8: Program exercise for processing records in a file Write a compiete Python program including minmal comments(ile name. Problem Specification Your program reads a file that contains a list of player names and scores and find the best player and the score. You need to use while loop to read all the values for this problem. your name, and problem descripticn) that solves the following probiem with the main functon: 1. Read a file name which contains the values to read 2. Catch any problem opening the file. If a problem occurs, print an error message and exit. s. using a while loop, count the umber of players and the lowest score and the player who made the lowest score 4Close the file 5 Make sure you have a main function and there should not be any global variable or statement other than main() function call is used. & Create following data file as shown below and test your program SAMPLE RUN: Enter the nane of the file to open for read: golf.txt Jose Maria Olazabal 73 vijay Singh 7 Sandy Lyle 73 Mike Weir 73 arry Mize 79 Bubba Wat son 69 Bernhard Langer Adan Scott 72 Fred Couples 75 There are 9 players in 4ile golf.txt The winner of this tournanent is Buoba watson with the scare of Sample input ose Haria Olazabal Vijay Singh 75 Sandy Syle Larry Mize Bubba Watson Bernhard Langer dan scot red Couples 75
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
