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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started