No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
/** * @param args the command line arguments */ public double averagegrades(double total, double average) { average = total/5; return average; } public static void main(String[] args) { Scanner input = new Scanner(System.in); double[] grades = new double[5]; double total = 0; double average = 0; for(int i=0; i<5; i++){ … |
|
New to Java and would appreciate the help with the assignment: Write a program to collect exam grades from keyboard until an invalid grade (grade less than 0 or bigger than 100) inputted. Find how many grades were entered, the corresponding average grade, how many grades above 90, and how … |
|
public static void main(String[] args) { int agrades = 0; int fgrades=0; int count=0; Scanner input = new Scanner(System.in); System.out.println("Enter Grades: "); int grades = input.nextInt(); while (grades>=0 && grades<=0){ if (grades>=90 && grades<=100) agrades++; if (grades>=0 && grades<=60) fgrades++; count++; grades = input.nextInt(); } System.out.println("Amount of Grade: " + … |