QuestionQuestion

Transcribed TextTranscribed Text

String[] letterGrades = {"A+", "A", "A-", "B+", "B", "B-", "C+", "C", "C-", "D+", "D", "D-", "F"}; int[] limits = {97, 94, 90, 87, 84, 80, 77, 74, 70, 67, 64, 60, 59 }; String[] names = {"Abe", "Bobbi", "Charlie", "Daisy", "Eric"}; double[] grades = new double[names.length]; Write code to accept weighted total grade into the appropriate location for each student found in the array names. Array grades has been created for you for this purpose. Compute the letter grade to be assigned for each student based on the limits given in the limits array. Sample Input Sample Output Enter grade for Abe : 95.6 Enter grade for Bobbi : 87.2 Enter grade for Charlie : 75 Enter grade for Daisy : 62 Enter grade for Eric : 50 letter grade for Abe : A letter grade for Bobbi : B+ letter grade for Charlie : C letter grade for Daisy : Dletter grade for Eric : F Enter grade for Abe : 92 Enter grade for Bobbi : 70 Enter grade for Charlie : 67 Enter grade for Daisy : 80.7 Enter grade for Eric : 65 letter grade for Abe : Aletter grade for Bobbi : Cletter grade for Charlie : D+ letter grade for Daisy : Bletter grade for Eric : D

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

import java.util.Scanner;

/**
*
* @author
*/
public class Assignment7 {

    public static void main(String[] args) {
       String[] letterGrades = {"A+", "A", "A-",
            "B+", "B", "B-",
            "C+", "C", "C-",
            "D+", "D", "D-",
            "F"};
       int[] limits = {97, 94, 90,
            87, 84, 80,
            77, 74, 70,
            67, 64, 60,
            59
       };
       String[] names = {"Abe", "Bobbi", "Charlie", "Daisy", "Eric"};
       double[] grades...
$15.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats