Question: Hello, I am writing a program to calculate the grade, My code does not give me any errors, but the program won't run as it

Hello, I am writing a program to calculate the grade, My codedoes not give me any errors, but the program won't run asit should. The program asks for the user to input a number,Hello, I am writing a program to calculate the grade, My code does not give me any errors, but the program won't run as it should. The program asks for the user to input a number, but when I hit enter, it simply goes to the next line, and the user can input infinitely. Can you help find the errors and help me fix the errors, thanks

6 import java.util.Scanner; 7 8 public class P1 { 9 10 @ public static String scoreToLetterGrade (double grade) { 11 12 13 14 15 16 17 18 19 20 -D 21 22 23 24 25 0-D 0D 26 27 28 if (grade >= 90){ return "A+"; } else if (grade >= 85 && grade = 80 && grade = 77 && grade = 73 && grade = 70 && grade = 65 && grade = 60 && grade = 55 && grade = 50 && grade

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!