Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COP 4814 Lab 8 (20 Points in total) Students and Courses Part 2 (10 points) (Java Maps and Lists) You created the Students and Courses

image text in transcribed

COP 4814 Lab 8 (20 Points in total) Students and Courses Part 2 (10 points) (Java Maps and Lists) You created the Students and Courses application (Part 1) in Lab 1 Now you are asked to improved it in the following ways (1) Create a TreeMap of course names. Each map entry should contain a single integer that counts the number of students who have enrolled in that course (2) Display the map in ascending order by course name, showing each course name and its enrollment count. Note: You cannot directly increment the enrollment count in a map entry. Instead, retrieve the existing count using the get) method, add 1 to the count, and then insert the key and updated enrollment count back into the map by calling the put) method The final test program should display the following output with different names and courses 08, Alvarez COP225e, COP325e, COP425 0002, Chong 0026, Fjioka COP225e, COP325e, COP4250 0032, Johnson COP121e, COP3337, COP3530 0e1e, Kim 0027, 'Malley COP2250, COP32se, COP4250 0044, Pierrot ENC1105, ENC3250, REL2210 0013, Ramirez ENC1105, ENC3250, REL2210 0001, Smith 0011, Wong COP121e, COP3337, COP3530 COP121e, COP3337, COP3530 COP2250COP3250COP4 250 , , ENC1185, ENC325e, REL221e COP121e3 COP22504 COP3250-4 COP3333 COP3533 COP4254 NC1105 3 ENC32503 REL22103 Submission (2 Points) Submit a zip file called FirstnameLastnamelab8.zip containing your Java source code. Do not use the package statement in any of your files. Each class should be in a separate file. I will compile and run from the command line

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

=+ (a) Prove that (22.21) E[S,] = E[X]]E[+].

Answered: 1 week ago