Question: I did the code right but teacher said below it had indentation and braket issues. Can you please fix it. Here is the code to

I did the code right but teacher said below it had indentation and braket issues. Can you please fix it.

Here is the code to make it easier
import java.util.Scanner; public class Grade {
public static void main(String args[]) { int score = 100; Scanner object = new Scanner (System.in); System.out.println("Enter a Score"); score = object.nextInt(); if(score >= 90){ System.out.println("Excellent you get an A"); } else if (score >=80){ System.out.println("Good you get an B"); } else if (score >=70){ System.out.println("Ok you get an C"); } else if (score O Java Java Grade/src/Gradejava Eclipse File Edit Source Refactor Navigate Search Project Run Window Help H Package Explorer 83 Grade,java 1 import jav util. Scanner 2 public class Grade v Grade 40 public static void main(string args Dj) Src v (default package) int score 100; Grade Java Scanner object new Scanner Syste in); system out.println("Enter a score"); JRE System Library [JavaSE-1 EA Graphical U score object. nextInt(); 10 if (score 90) 11 Java Complete System.out.println("Excellent you get an A"); 12 Possibleoutputs 13 Starting Point else if (score >*8e)t 14 System out.println("Good you get an B 15 eight 16 else if (score 70)t 17 System.out.println ("ok you get a n C") 18 19 if (score 59) 20 Syste try harder 21 22 else if (score 69 23 Syste try harder 25 26 27 Console E3 exe (Feb 10, 2017, 2:17:03 PM) terminated> Grade [Java Al cation] C:\Program ava re1.8.0 111\bin javaw Enter a Score F try harder ritab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
