CSC111 Homework 13 2014

From dftwiki3
Revision as of 14:54, 5 April 2014 by Thiebaut (talk | contribs) (Created page with "--~~~~ ---- <bluebox> This homework is a makeup homework. You have until Friday May 2nd, midnight to submit it. You can work in pair-programming on this assignment. </bluebo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut (talk) 14:54, 5 April 2014 (EDT)


This homework is a makeup homework. You have until Friday May 2nd, midnight to submit it. You can work in pair-programming on this assignment.

Logistics

The algorithm used to incorporate this assignment in your overall grade is the following:

  # hw13 is the makeup assignment.
  
  if  youDoThisMakeupAssignment():
      hw13 = # your grade on this assignment
  else:
      hw13 = 0

  # create a list of all your homework assignment grades.  homework assignments missed get a 0
  homeworkGrades = [ hw1, hw2, hw3, hw4, hw5, hw6, hw7, hw8, hw9, hw10, hw11, hw12 ]

  # find the lowest grade
  minHW = min( homeworkGrades )

  # find where the lowest grade is
  minIndex = homeworkGrades.index( minHW )

  # replace lowest with grade of hw13 if this one is greater
  if hw13 > minHW:
      L[ minIndex ] = hw13

  # Drop the lowest assignment of the semester
  minHW = min( homeworkGrades )
  minIndex = homeworkGrades.index( minHW )
  homeworkGrades.pop( minIndex )