subject

A teacher determines student percentages in a course as the points a student earns divided by the total points available in the grading period. Points are awarded only in whole number increments, but student percentages are to be stored as decimals. The following code segment appears in a program used to compute student percentages. Points that a student earns are stored in pointsEarned, the total points available in the grading period are stored in totalPoints, and the student percentage is stored in percentage.
int pointsEarned;
/* missing code */
Which of the following is most appropriate to replace /* missing code */ in the program?
A. int totalPoints;int percentage;
B. double totalPoints;int percentage;
C. int totalPoints;double percentage;
D. int totalPoints;boolean percentage;
E. double totalPoints;boolean percentage;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
You know the right answer?
A teacher determines student percentages in a course as the points a student earns divided by the to...
Questions
question
English, 04.02.2021 19:30
question
History, 04.02.2021 19:30
question
Mathematics, 04.02.2021 19:30
question
Mathematics, 04.02.2021 19:30
question
English, 04.02.2021 19:30
question
Computers and Technology, 04.02.2021 19:30
question
Mathematics, 04.02.2021 19:30