are you from University of Alabama in Huntsville, Huntsville, Alabama U.S.A. ? That course number and "canvas" assignment is a giveaway...Be careful or your prof may find out !! If not, my bad.
Also I cannot make sense of your assignment, need more details. I can do this for you. I can give you a sample code to run and final the deal later...