Multiple Choice
A student's class average can be computed by dividing the number of points they have earned by the number of points possible in the class. Assume the following variables have been declared as shown and given values elsewhere:
Int pointsEarned, pointsPossible;
Double classPercentage;
Which of the following statements will assign the correct percentage average to classPercentage? For example, if pointsEarned is 725 and pointsPossible is 1000, classPercentage should be assigned the value 72.5.
A) classPercentage = pointsEarned/pointsPossible * 100.0;
B) classPercentage = 100 * pointsEarned/pointsPossible;
C) classPercentage = (100.0 * pointsEarned) /pointsPossible;
D) classPercentage = (100.0 + pointsEarned) /pointsPossible;
Correct Answer:

Verified
Correct Answer:
Verified
Q22: What is the value of the following
Q29: In an airline reservation system, the number
Q78: Which option represents the best choice for
Q87: What is the value of the following
Q110: Which of the following statements is correct
Q117: What is the output of the following
Q118: What does the following statement sequence print?
Q119: Which of the following is the
Q120: Assuming that the user enters 45 and
Q121: The problem solving process emphasizes a "first,