Write a program segment that translates an integer value into a letter grade. Be
ID: 3527709 • Letter: W
Question
Write a program segment that translates an integer value into a letter grade. Between 90 and 100 the segment should output 'A', between 80 and 89 it should output 'B', between 70 and 79 it should output 'C', between 60 and 69 it should output 'D' and less than 60 it should output 'E'. The last line of your program segment should be a println that outputs the letter grade. Your code should use an int named numberGrade for comparisons. For Eclipse platformExplanation / Answer
import java.*; import java.util; public class project } static Scanner console=new Scanner(System.in); public static void main(String [] args) { int num; if(num>=90) { System.out.println("A"); } else if(num>79 && num69 && num59 && numRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.