CS106 Summer 2026 Michael Eckmann Lab 10 July 22, 2026 ================== Purpose: To get familiar with the following topics writing code that reads from a file writing code that writes to a file writing code that splits a string writing a class that represents an Address ================== Please read this entire lab file before writing any code. Write your code in two different python files --- one should contain the class Address and the other the code to read/write a file of addresses ================== Write a program named reformat.py that reads in a file with lines of the following format: LastName,FirstName,street address,city,state,zip And outputs each of those addresses to a file with the addresses of this format: FirstName LastName street address city, state zip e.g. Conner,Marc,815 N. Broadway,Saratoga Springs,NY,12866 should be transformed to: Marc Conner 815 N. Broadway Saratoga Springs, NY 12866 You may assume that a comma separates each data item and there will be exactly 5 commas on a line. The input file can contain any number of lines. Use the names-addresses.txt file posted on the labs page as the input file -------------------------- Make a class named Address that lives in address.py that has 6 instance variables and has a constructor and an __str__ method the __str__ method should return a string of the 3 lines (the reformatted address) -------- submit to the Spring: address.py reformat.py