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.
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?
|