Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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;
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started