Question: In Java can toy modify this program so it reada 3 integer values from the keyboard. it should still compute the aum and average and
JUULOU Computation X Compile Undo Cut Copy Source Co public class Computation public static void main(String Il/Define a constant final int NUM_OF_GRADES = 3; // Define integer Value int grade1, grade2, grade3; int sum; double average; 11 Interger values grade1 = 2; grade2 = 3; grade3 = 2; sum = grade1 + grade2 + grade3; average = (double) sum / NUM_OF_GRADES; 7/Print the sum and average System.out.println("The sum is" + sum): System.out.println("The average is" + average)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
