Question: Pseudocode for import java.util.Scanner; public class Exercise { public static void main ( String [ ] args ) { Scanner input = new Scanner (
Pseudocode for
import java.util.Scanner;
public class Exercise
public static void mainString args
Scanner input new ScannerSystemin;
System.out.printEnter the nubmer of students: ;
int scores new intinputnextInt;
char grades new charscoreslength;
System.out.printEnter scores.length scores: ;
for int i ; i scores.length; i
scoresi input.nextInt;
getGradesscores grades;
for int i ; i scores.length; i
System.out.printlnStudent i score is
scoresi and grade is gradesi;
public static int maxint array
int max array;
for int i ; i array.length; i
if arrayi max
max arrayi;
return max;
public static void getGradesint scores, char grades
int best maxscores;
for int i ; i scores.length; i
if scoresi best
gradesiA;
else if scoresi best
gradesiB;
else if scoresi best
gradesiC;
else if scoresi best
gradesiD;
else
gradesiF;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
