Create a treemap of course names

Assignment Help JAVA Programming
Reference no: EM131587095

Java Maps and Lists

Part 1: Students and Courses
(1) Create a Student class, with ID, last name, and a list of courses.

(2) Create a Course class, with name (such as COP2220), credits, and semester ID (0 to 3). In this class, create a static list of course names. Also, create a static array of 4 semester names, such as "Fall 2012", and "Spring 2014". In each Course object, the semester ID is an index into the array of semester names.

(3) Create a test program that does the following:
Fill a list with 10 students. Each student should be assigned 10 courses, involving at least 2 semesters.

Part 2: Students and Courses
(Java Maps and Lists) You created the Students and Courses application (Part 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.

Reference no: EM131587095

Questions Cloud

The death penalty for juveniles in tennessee : If you were a justice on the Supreme Court, in Roper v. Simmons, would you have voted with the majority or dissent? Give your rationale.
How many one-to-one functions are there from x to y : Let X = {1,2,3,4,5} and let Y = {1,2,3,4,5,6}. How many one-to-one functions f : Y ? X are there?
What reasons should the vice-president provide : What reasons should the vice-president provide to the president to justify the recommendation on employee burnout?
What are the net amount raised and direct costs : The Wiley Oakley Co. has just gone public. The company paid $917,000 in legal and other direct costs and $192,000 in indirect costs.
Create a treemap of course names : 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
Aggregate supply curve shifted to the right : By how much (in real dollars) has the long run aggregate supply curve shifted to the right from one year to the next? Round your answer to two decimal places.
Write the contrapositive given equation : Prove or give a counterexample: Every sub graph of a non-planar graph is non-planar.
How much does alden''s improvements : Alden has a summer beach cottage that he has owned for many years. The cottage is valued at $80,000. This year, Alden spends $400 on paid.
Assuming it must issue new stock to finance capital budget : Assume that you are on the financial staff of Bagio Company, What is the firm's WACC, assuming it must issue new stock to finance its capital budget?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd