21. The 5th Subject

The 5th Subject

Question:

Start Quiz:

/* Your friend seems to be really good at music, 
he managed to score 96% on his final exam!
Now that you know all 5 subject grades, 
update the average calculation below to calculate the 
total average of all subjects. */

double maths=97.5;
double english=98;
double science=83.5;
double drama=75;
double sum=maths+english+science+drama;
double average=sum/4;
System.out.println(average);
Solution: