Question: Two Part coding quesiton. Python only please Part B: The second task is to write that output to a file. The steps are 1. Open
Two Part coding quesiton. Python only please 

Part B:
The second task is to write that output to a file.
The steps are 1. Open a file for writing, e.g. outfile = open(output.txt,w)
2. Whenever you print, include the argument file = outfile For example, if you previously had print(x) you will now have print(x, file = outfile)
3. Close the file, e.g. outfile.close()
a Amazon.com: Kuzy BLACI x ht Macbook Case I Glaze P x f Microsoft Word labo6.doc x C Chegg Study Guided Sol x Mf Lab Exercises C O www.cse.msu.ed cse231/Online/Labs/Labo6/labo6.pdf Apps For quick access, place your bookma s here on bookmarks bar. mport bookmarks now. Part A: Data Processing Given a data file, find the max, min, and average values of columns. Also, create an addition column that is based on the other columns. There will be no error checking required for this lab, You are provided with a data file named (surprise!) data.txt. Data is arranged in columns where each item of data is twelve columns wide (so it is casy to extract data items using slicing): Name Height (m) Weight (kg) Joe 1.82 72.57 Mary 1.60 63.50 Dion 90 90.71 Kayla 1.72 66.31. Jose 1.78 70.23 Sofia. 1.63 65.12 Erik 1.98 92.21 Sara 1.57 65.77 Your task is read the file data.txt and calculate the max, min, and average of the height and weight columns and to add an additional column that has the BMI calculated based on each height and weight. Your output will look like this (and needs to be formatted like this. To match the testing on Mirmir here is the format string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
