Assignment 4 - Code to generate ED scores