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, 21.06.2019 19:30
Can you make money in why are you guys so
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
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
Social Studies, 30.11.2020 16:30
question
Social Studies, 30.11.2020 16:30
question
Mathematics, 30.11.2020 16:30
question
English, 30.11.2020 16:30
question
Mathematics, 30.11.2020 16:30
question
Mathematics, 30.11.2020 16:30
question
Mathematics, 30.11.2020 16:30
Questions on the website: 13722365