Changes

Jump to navigation Jump to search
10 bytes added ,  00:43, 17 May 2009
Line 84: Line 84:  
<pre>
 
<pre>
 
BEGIN{
 
BEGIN{
printf("%-11s%-8s%-11s%-8s%-11s%-8s%-11s%-8s%-11s\n", "Student", "Only +", "Contains", "Only -", "Contains -", "Only *", "Contains *", "Only /", "Contains /")  
+
printf("%-11s%-8s%-11s%-8s%-11s%-8s%-11s%-8s%-11s\n", "Student", "Only +", "Contains", "Only -",
 +
      "Contains -", "Only *", "Contains *", "Only /", "Contains /")  
 
}
 
}
   Line 226: Line 227:  
{
 
{
 
#need to address divide by 0 issue
 
#need to address divide by 0 issue
printf("%-11s%-8s%-11s%-8s%-11s%-8s%-11s%-8s%-11s\n", student, int(o_addition_correct[student]*100/o_addition[student]), int(addition_correct[student]*100/addition[student]), int(o_subtraction_correct[student]*100/o_addition[student]), int(subtraction_correct[student]*100/subtraction[student]), int(o_multiplication_correct[student]*100/o_multiplication[student]), int(multiplication_correct[student]*100/multiplication[student]), int(o_division_correct[student]*100/o_division[student]), int(division_correct[student]*100/division[student]))   
+
printf("%-11s%-8s%-11s%-8s%-11s%-8s%-11s%-8s%-11s\n", student,
 +
int(o_addition_correct[student]*100/o_addition[student]),
 +
int(addition_correct[student]*100/addition[student]),
 +
int(o_subtraction_correct[student]*100/o_addition[student]),  
 +
int(subtraction_correct[student]*100/subtraction[student]),
 +
int(o_multiplication_correct[student]*100/o_multiplication[student]),
 +
int(multiplication_correct[student]*100/multiplication[student]),
 +
int(o_division_correct[student]*100/o_division[student]),
 +
int(division_correct[student]*100/division[student]))   
 
 
 
}
 
}
236

edits

Navigation menu