myScore
is not the same as myscore
.name = value;
instead of type name = value;
)studentTotal
when you declare it, but later calling it total
.==
to compare double values. Remember that double values are often an approximation. You might want to test if the absolute value of the difference between the two values is less than some amount instead.