Add var isCorrect

declared the variable isCorrect to find the sum of the percentages,
compare it to 100%, and then print to the console whether is it true or
false.