Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles of Auditing and Other Assurance Services

Authors: Ray Whittington, Kurt Pany

19th edition

978-0077804770, 78025613, 77804775, 978-0078025617

More Books

Students also viewed these Programming questions

Question

What are the major functions of audit working papers?

Answered: 1 week ago