Question: Create a flowchart with the following shapes for the below Java program. import java.util.Scanner; public class Exercise 0 7 _ 0 1 { public static

Create a flowchart with the following shapes for the below Java program.
import java.util.Scanner;
public class Exercise07_01{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int numberOfStudents;
int[] scores;
int bestScore = Integer.MIN_VALUE;
System.out.print("Enter the number of students: ");
numberOfStudents = scanner.nextInt();
scores = new int[numberOfStudents];
System.out.print("Enter "+ numberOfStudents +" scores: ");
for (int i =0; i numberOfStudents; i++){
scores[i]= scanner.nextInt();
if (scores[i]> bestScore){
bestScore = scores[i];
}
}
System.out.println("Grades:");
for (int i =0; i numberOfStudents; i++){
char grade;
if (scores[i]>= bestScore -10){
grade ='A';
} else if (scores[i]>= bestScore -20){
grade ='B';
} else if (scores[i]>= bestScore -30){
grade ='C';
} else if (scores[i]>= bestScore -40){
grade ='D';
} else {
grade ='F';
}
System.out.println("Student "+ i +" score is "+ scores[i]+" and grade is "+ grade);
}
}
}
 Create a flowchart with the following shapes for the below Java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!