The Grades.java class file has a studentScores array with 6 elements. Add a loop that will Check every array element in the studentScores array and determine the appropriate letter grade for the score and print out the grade and letter grade on the console using System.out.println()The grade letter is determined by the following rules. 90 and above = A; 80 to 89 = B; 70 to 79 = c, and below 70 = F Download the Grades.java file using this link Grades.java. %3D

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 5E
icon
Related questions
Question

Write in Java language and add comments 

QUESTION 1
The Grades.java class file has a studentScores array with 6 elements. Add
a loop that will Check every array element in the studentScores array and
determine the appropriate letter grade for the score and print out the
grade and letter grade on the console using System.out.println() The grade
letter is determined by the following rules. 90 and above A; 80 to 89 =
B; 70 to 79 = c, and below 70 = F Download the_Grades.java file using
this link Grades.java
Below is an illustration of the print out
Grade letter for 75.0 is c
Grade letter for 85.0 is B
Grade letter for 91.0 is A
Grade letter for 60.0 is F
Grade letter for 80.0 is B
Grade letter for 100.0 is A
Transcribed Image Text:QUESTION 1 The Grades.java class file has a studentScores array with 6 elements. Add a loop that will Check every array element in the studentScores array and determine the appropriate letter grade for the score and print out the grade and letter grade on the console using System.out.println() The grade letter is determined by the following rules. 90 and above A; 80 to 89 = B; 70 to 79 = c, and below 70 = F Download the_Grades.java file using this link Grades.java Below is an illustration of the print out Grade letter for 75.0 is c Grade letter for 85.0 is B Grade letter for 91.0 is A Grade letter for 60.0 is F Grade letter for 80.0 is B Grade letter for 100.0 is A
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Multithreading Methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr