View the step-by-step solution to:

JAVA: How do I take integers stored in an array ( 20 grades) and determine the score letter?

JAVA: How do I take integers stored in an array ( 20 grades) and determine the score letter?

public static char findLetterGrade(int score) {

    if (score>=90) {
        return 'A';
    }
    else if (score>= 80) {
        return 'B';
    }
    else if (score>=70) {
        return 'C';
    }
    else if (score >=60) {
        return 'D';
    }
    else {
        return 'F';
    }
}

Top Answer

Please follow this example to help you... View the full answer

Capture1.PNG

Sign up to view the full answer

Other Answers

The main method should look like this: The program accepts 20 integers from the user and display the grade for each. public... View the full answer

TestScores1.png

TestScores2.png

TestScores3.png

To access the integers in an array, you will need to use a for loop to go through all the 20 scores. it is then... View the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online