Question: Complete the program, Grade.java, below. The program takes in a student's score and prints the corresponding letter grade assuming a standard 60-70-80-90 scale for cutoff

Complete the program, Grade.java, below. The program takes in a student's score and prints the corresponding letter grade assuming a standard 60-70-80-90 scale for cutoff of each grade. For example, if a student's score is 52.6 they would be assigned an "F" grade. If a student's score is 87.8 they would be assigned a "B grade.

The program should take in the score as a double value and print the letter grade (capitalized letter of A, B, C, D, or F). You may assume that all scores will be in the range 0 to 100.

Starter code:-

import java.util.Scanner;

public class Grade { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); System.out.println("Enter the student's score:"); //TODO: complete the program } }

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!