The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi haw are youÂ
Can you help me in theses questions :
A:What is Set? Write Java code for the following operations:
1) Construct the Set
2) Add and remove an element from a HashSet
3) Test whether an element is contained in the set
4) Visiting all Elements with an Iterator
B:Â Suppose you have the following information about courses and the number of students in each course:
| CS140 | 549 |
| CS141 | 256 |
| IT407 | 120 |
| IT101 | 636 |
| IT244 | 210 |
 1- Write a program that store these information in a map
2- Remove the course IT407 with its associated value
3- Edit the number of students in CS140 to 433
4- Print all keys with their values as the following format:
Course CS141 has 256 students
Course CS140 has 433 students
Course IT101 has 636 students
Course IT244 has 210 studentsÂ
Â
Answer should be on word document ..
Attachments:
-----------