Question: You already have learned how to use a 2 D list. Today we utilize the 2 D list to solve the problem. You are given

You already have learned how to use a 2D list. Today we utilize the 2D list to solve the problem. You are given an input file (input.csv Download input.csv) where a list of students and their grades are listed. Your task is to read the file content, populate the 2D list, and finally do some calculations (min, max, median, and average) for each course. You CAN NOT use any built-in functions, like min, max, sort, etc. as well as csv module in this assignment. However, for the median, you can ONLY use a built-in function from the statistics module. After calculating these, you need to store them in an output file. A sample output file (output.csv Download output.csv) is given for the corresponding input file. I may use different input files which will generate different output files. Before submitting your in-class, make sure your code runs correctly and generates the specified output file. You may use a different input file for your test case.
You are only supposed to submit the .py file named as '{firstname}_{lastname}_2d_list.py' before the deadline.
Rubrics
a) Use the coding format given in the class which should contain a main(), docstring, and several utility functions based on your need. (2)
b) Populate a 2D list from the input file (3)
c) Calculation with several utility functions (3)
d) Store the results in the output file (1)

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 Databases Questions!