Selection Exercise

Name:  ______________________________________________________________________

Show the output of the program below. Also draw a flowchart of the program and trace its flow. public class TestGrade { public static void main(String[] args) { int score = 85; char grade; if (score > 90) grade = 'A'; if (score > 80) grade = 'B'; if (score > 70) grade = 'C'; if (score > 60) grade = 'D'; else grade = 'F'; System.out.println("Your test score is " + score + "\nYour test grade is " + grade); } }