Question: create a Word document that contains the pseudocode, flowchart, and test plan for this java program. NB: Flowchart must be the actual diagram not sketch.
create a Word document that contains the pseudocode, flowchart, and test plan for this java program. NB: Flowchart must be the actual diagram not sketch.
import java.util.Scanner;
public class Exercise
Main method
public static void mainString args
Create a Scanner
Scanner input new ScannerSystemin;
Get number of students
System.out.printEnter number of students: ;
int numberOfStudents input.nextInt;
double scores new doublenumberOfStudents; Array scores
double best ; The best score
Read scores and find the best score
System.out.printEnter numberOfStudents scores: ;
for int i ; i scores.length; i
scoresi input.nextDouble;
if scoresi best
best scoresi;
Declare and initialize output string
char grade; The grade
Assign and display grades
for int i ; i scores.length; i
if scoresi best
grade A;
else if scoresi best
grade B;
else if scoresi best
grade C;
else if scoresi best
grade D;
else
grade F;
System.out.printlnStudent i score is
scoresi and grade is grade;
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
