Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could you please help me with this and make it run. I appreciate it. COP 4814 Lab 8 (20 Points in total) Students and Courses

Could you please help me with this and make it run. I appreciate it.

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 improve 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 same output as lab 1 with the addition of the Course Enrollments below that. You should have the 15 students from Lab 1 ?008, Alvarez COP2250) COP325e, coP4250 9002, Chong 0026, Fujioka COP225e, COP325e, COP4250 8032, Johnson COP1210, COP3337, COP353e ee1e, Kim ee27, O'Malley COP2250, ???325e, coP4 250 9044, Pierrot ENC1105, ENC325e, REL221e 0013, Ramirez ENC1105, ENC3250, REL2210 9001, Smith 9011, Wong ----Course Enrollments-- COP1210 3 COP22504 COP121e, COP3337, COP3530 COP1210, COP3337, COP353e COP2250, COP325e, COP4250 ENC1105, ENC3250, REL221 COP33373 COP3530 3 COP42504 ENC1185 - 3 ENC32503 REL2210 3 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 A Java submission must compile and run from the command line or it will earn a 0 and will not be graded further. Do not include package statements or this will happen

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

39 Job evaluation methods.

Answered: 1 week ago