Question: Exl: import java.util.Scanner; public class GradeAverage public static void main( String argsI) Scanner input- new Scanner( System.in); int total; int gradeCounter int grade int average;
Exl: import java.util.Scanner; public class GradeAverage public static void main( String argsI) Scanner input- new Scanner( System.in); int total; int gradeCounter int grade int average; total 0; gradeCounter 1; while (gradeCounter10) System.out.print("Enter grade:"); grade - input.nextlnt0: total total +grade; gradeCounter gradeCounter 1; average -total /10; System.out.printf "InTotal of all 10 grades is %d ", total ); System.out.printf "Class average is %din", average ); . Modify the above program to read the data from a file called student.dat Extend the pro gram to assign letter grades. program to count how many students will get an A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
