Solved

A Student's Class Average Can Be Computed by Dividing the Number

Question 111

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents