Practice : Writing data to a file

Background

This practice will continue with the data that we used in the practice for Topic 3.2.

 

Recall that it looks like:

I have snipped in to only look at some of the data. But let's focus in on the row for AGWSR. The data shows that by the spring of 2017 36 of the 39 students who started as freshman in fall of 2013 had graduated in the four year period. Similarly, it shows that all 35 of the 35 students who started as freshman in fall of 2012 had graduated within that five year period.

Some schools have not reported some data. For example, Adair-Casey had reported their 5 year data but not their 4 year data. Alden had not reported any data. Every field with missing data is marked with the symbol "****"

Program Guide

For this practice activity you should ADD the following function to your graduation.py file that you created last time.

 

Create a function called addColumns() that:

 

 


Testing Your Code

 

  1. Go to the AutoLab Homepage for the course
    1. https://hypnos.cs.uni.edu/courses/CSED1320-F21/assessments
    2. Log in if necessary
  2. For each of the assignments listed above, find their submission link under the "Practice" heading
  3. Upload the corresponding python file for that assignment.
  4. When the "handin history" page comes up you will need to refresh the page until a score of either 0 or 1 is shown with your assignment.
  5. Click on the 0/1 score to get feedback.
  6. Read the information carefully if you received a score of 0 and figure out what you need to do to fix the problem.
    • Ask for help from me or other students if you don't understand an error message.
  7. Resubmit until the program earns a 1.