Teacher Reporting: Difference between revisions

Line 224: Line 224:
numproblems[$2]++
numproblems[$2]++


#Determine if it is a compound operation if so increment by one, this requires 4 if's as we have to check if each of them exists in conjuntion with another.
#Determine if it is a compound operation if so increment by one, this requires 4 if's as we have to check if each of them exists in
# conjuntion with another.
#Keep track of total compounds and compounds correct.  
#Keep track of total compounds and compounds correct.  
#Else-if structure required because if stringed If were used each compound match would register twice.
#Else-if structure required because if stringed If's were used each compound match would register twice.


if ( match($3, /\//) && ( match($3, /[0-9]\-[0-9]/) || match($3, /\+/) || match($3, /\*/) ) )  
if ( match($3, /\//) && ( match($3, /[0-9]\-[0-9]/) || match($3, /\+/) || match($3, /\*/) ) )