ICSE Class 8 Computer Studies Question 8 of 33

Introduction to Java & BlueJ — Question 2

Back to all questions
2
Question

Question 2

Kareena is writing a program in Java to calculate the average of three subjects. Which operators will she use for the same?

Answer

Kareena will use the addition operator (+) to first calculate the total marks obtained in all three subjects. After that, she will use the division operator (/) to divide the total marks by 3 to get the average.