Question: Download the following program from Brightspace and open it in IDLE: 1 . Open Notepad and create a file with 5 to 1 0 lines

Download the following program from Brightspace and open it in IDLE: 1. Open Notepad and create a file with 5 to 10 lines of data. This data can be songs you like, favorite musical artists, sports teams or whatever else you may want to list. Save the file with a new name in the same folder the above program is saved in.2. Change the program to so that it opens your file, and the open function creates a file object with a name that indicates the type of data you created. In other words, change student_file to another name. This will allow your program to access that file. 3. Run the program to test that it outputs the first 3 records in your file. 4. Add the following line before the print(record1) line: record1= record1.rstrip('
') Add a similar line before the other print commands. Run program. What changed on the output and why? (OVER)5. Consider the following algorithm in the following flowchart. It shows how to process all the records in a file until the end of file: Using the above logic and program 6-17 in the textbook,(It shows how to check for end of file), modify your program to read and output all the data on your file. When finished testing your program, submit it, your input file and the answer to question 4 execution of your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!