Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QM1. GradesMap.java Please answer accurately and fast, thank you! 1-* * Tests the GradesMap class */ 4 public class QM1 5 { 2 3 public
QM1.
GradesMap.java
Please answer accurately and fast, thank you!
1-* * Tests the GradesMap class */ 4 public class QM1 5 { 2 3 public static void main(String[] args) { GradesMap map = new GradesMap(); 6e 7 8 String[] letterGrades = {"A", "B", "A", "D", "F", "A", "B", "C", "C", "A", "B", "D", "C", "B"}; String[] names = {"Cate", "Russell", "Hugh", "Heath", "Nicole", "Toni", "Guy", "Rose", "Naomi", "Chris", "Liam","Margot", "Sam"}; 10 11 12 for (int i = 0; i < names.length; i++) { map. add(letterGrades[i], names [i]); } map.printGradeDistribution(); System.out.println("Expected: A: 4 Cate, Hugh, Toni, Chris B: 3 - Russell, Guy, Liam C: 3 - Rose, Naomi, Sam " 13 14 15 16 17 18 19 + "D: 2 - Heath, Margot F: 1 - Nicole"); } 21 } 20 22
Step by Step Solution
★★★★★
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
GradesMapjava import javautilArrayList import javautilMap import javautilTreeMap public class Grades...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started