Maps Test:
Thursday and Friday 11/6 and 11/17
| Program Assignments | Description | Due Date |
| Airline | Download the Airline folder from the share folder
(chapter 5 AB assignments). You will be required to complete a
simple Reservations class, and an Airline class which maintains flight
records in a map keyed by the seat, storing a reservation object as its
value. |
Thursday 11/9 |
| History Fish |
Create a new type of fish for the case study
program. You need to extend the Fish class and write the
following methods: a constructor a move a nextLocation You will also need to create a private map variable that will be used to store a count of how many times the fish had visited each location. When the fish moves it should print out a list of its choices and the number of times it visited each choice. For example it could look like: Choices: (2, 3), (4, 3), (3, 2), (3, 4) Visits: 2, 4, 5, 2 That woul indicate that it visited location (2,3) twice, (4,3) four times, etc. Just having it print out the values will earn you an 85 %. In order to earn a 100% you need to have the fish choose to move to a location that has the least amount of visits. If there are two locations with the least amount of visits then either location is acceptable. |
Wednesday 11/15 |
| Word Count |
Library scientists often record specific facts about the
books in their libraries. One such fact is a count of the
different words used in a work of literature. Use a map of integer values keyed by the individual words write a program that will count the number of times each words in a file are used. In the share folder is a file containing the text of the declaration of independance use this as your input. You will then write to the screen the word counts for each word used in the document. I will grade this program on the screen |
Friday 11/17 |