java program

Create a program that will print the student’s letter grade given the following specifications :
90 – 100 = A
80 – 89 = B
70 – 79 = C
60 – 69 = D
below 60 = F

  1. 👍
  2. 👎
  3. 👁
  1. letter = (n>=90) ? "A" :
    (n>=80) ? "B" :
    (n>=70) ? "C" :
    (n>=60) ? "D" : "E";

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Algebra

    A survey about the student government program at a school finds the following results: 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  2. Math

    A survey about the student government program at a school finds the following results. 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  3. Pre-Algebra

    A survey about the student government program at a school finds the following results: 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  4. ALGORITHM

    Write an algorithm and flowchart that will accept score of 30 student in a class calculate and print the average mark in basic program.

  1. Math

    2. A survey about the student government program at a school finds the following results: 190 students like the program, 135 students think the program is unnecessary, and 220 students plan on running for student government next

  2. science physics solar

    A given monocrystalline silicon solar cell has the following specifications: Isc=5A Voc=0.6V 72 identical cells with the above specifications are to be interconnected to create a PV module. What is the open-circuit voltage (in V)

  3. Computer science

    need help how do this program. Use the top-down modular approach and pseudocode to design a suitable program to solve it. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she

  4. statistics

    A​ student's course grade is based on one midterm that counts as 5​% of his final​ grade, one class project that counts as 25​% of his final​ grade, a set of homework assignments that counts as 35​% of his final​

  1. c++

    C++ Program to read, print name and other details of 50 students ? Problem Statement : The annual examination is conducted for 50 students for three subjects. Write a program to read the data and determine the following: (a) Total

  2. java programming

    Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Write the following methods in the program: •

  3. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the

  4. Programming in c++

    Draw a flow-chart and Write a program that asks the user to enter students grades. The program should stop reading when the use enters ‘*’. In addition, your program should print the number of students got each grade. The

You can view more similar questions or ask a new question.