Difference between revisions of "CSC111 Homework 11 2018"

From dftwiki3
Jump to: navigation, search
(Make-Up Homework)
(Make-Up Homework)
Line 1: Line 1:
 
[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 20:58, 19 April 2018 (EDT)
 
[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 20:58, 19 April 2018 (EDT)
 
----
 
----
=Make-Up Homework=
+
=Make-Up Homework 11=
 
<br />
 
<br />
 
<bluebox>
 
<bluebox>
Line 23: Line 23:
 
</source>
 
</source>
 
</bluebox>
 
</bluebox>
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
=Assignment=
 +
<br />
 +
* Write a program that gets the contents of the CSV file at the URL http://cs.smith.edu/~dthiebaut/111/collegeScorecard.csv
 +
* This file contains data about 7,594 colleges and universities in the U.S.
 +
*

Revision as of 20:02, 19 April 2018

D. Thiebaut (talk) 20:58, 19 April 2018 (EDT)


Make-Up Homework 11


This homework is a make-up homework. You can use it to replace the lowest grade you have received on Homework Assignments 1 to 10.
Here is the algorithm explaining how this works:

hws = [ HW1, HW2, HW3, HW4, HW5, HW6, HW7, HW8, HW9, HW10 ]
if HW11 != None: # if you have submitted HW11
    minHW = min( hws )
    if HW11 > minHW:
         hws.remove( minHW )
         hws.append( HW11 )

# drop lowest, as specified in syllabus
minHW = min( hws )
hws.remove( minHW )

# compute average homework grade
avgHW = sum( hws )/len( hws )





Assignment