0%
0 / 7 answered
Variables and Data Types Practice Test
•7 QuestionsQuestion
1 / 7
Q1
Based on the student grade manager below, what is the main advantage of using a double instead of an int for average?
int quiz1 = 85;
int quiz2 = 86;
Gradebook gb = new Gradebook();
double average = gb.computeAverage(quiz1, quiz2);
System.out.println(average);
Based on the student grade manager below, what is the main advantage of using a double instead of an int for average?
int quiz1 = 85;
int quiz2 = 86;
Gradebook gb = new Gradebook();
double average = gb.computeAverage(quiz1, quiz2);
System.out.println(average);