Question: Using the provided Java code, please help me create the pseudocode, flowchart ( preferred hand - drawn ) , functional requirements, and test plan /

Using the provided Java code, please help me create the pseudocode, flowchart (preferred hand-drawn), functional requirements, and test plan/Test Case Matrix for both projects. In the flowchart, please include multiple charts if there is more than one method.
import java.util.Scanner;
public class Exercise07_01{
// Main method
public static void main(String[] args){
Scanner input = new Scanner(System.in);
// Prompt the user to enter the total number of students
System.out.print("Enter the number of students: ");
int[] scores = new int[input.nextInt()];
char[] grades = new char[scores.length];
// Prompt the user to enter all the scores
System.out.print("Enter "+ scores.length +" scores: ");
for (int i =0; i < scores.length; i++){
scores[i]= input.nextInt();
}
// Get grades
getGrades(scores, grades);
// Display results
for (int i =0; i < scores.length; i++){
System.out.println("Student "+ i +" score is "+
scores[i]+" and grade is "+ grades[i]);
}
}
// Method max returns the highest score
public static int max(int[] array){
int max = array[0];
for (int i =1; i < array.length; i++){
if (array[i]> max)
max = array[i];
}
return max;
}
//Method getGrade assigns grades based on grading scheme
public static void getGrades(int[] scores, char[] grades){
int best = max(scores);
for (int i =0; i < scores.length; i++){
if (scores[i]>= best -10)
grades[i]='A';
else if (scores[i]>= best -20)
grades[i]='B';
else if (scores[i]>= best -30)
grades[i]='C';
else if (scores[i]>= best -40)
grades[i]='D';
else
grades[i]='F';
}
}
}

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!