Focus : create a program to help organize and schedule evacuation caravans from a disaster area for pets and animals.
- Arrays
- Interfaces
- Inheritance
- Exceptions
- Sorting algorthims
- JOption Pane
- NetBeans
Range up to three caravans per day
4 different size vehicles (inheritance); compact(2 animal), midsize(5 animals), SUV(10 animals),
truck(3 animals)
2 different types of vehicles(interface);cats and dogs only, or large animal trailer
for SUV and Truck:
- has trailer
- trailer length
- trailer capacity(2 horses or 4 horses)
-Each caravan can be up to 10 vehicles.If an additional vehicles is attempted to join a caravan that already has 10 vehicles, Must include an exception that will direct the user to select a different caravan.
-There is a 20% chance that a caravan will not make it to its destination and have to turn back.If that happens then the caravan must try again the next day. May have different routes with different percentages of success.
-Each caravan will ned to be sorted smaller vehicle to larger vehicle right before the caravan leaves.
(Sorting algorithm.)
For each animal, we need to know the following:
-Name
-Weight in pounds
-ID number
-Owner
For Dogs:
-Has leash
-Last potty break(Morning, afternoon, evenaing, night)
For cats:
-Has litter box
-Last time the litter box was cleaned(Morning,afternoon,evening,night,previous day)
For Horses:
-Has hay
The game starts with the computer ask him/herfor their name and welcoming them to the program.
Randomly determine which type of vehicle is generated.The user will be given the option of:
-Create new caravan
-Add to caravan
-Have caravan leave - when a caravan leaves, teh vehicles must first be sorted by size, then a line should be printed with the sorted caravan and whether it succeeds or failes
-Quit the game at any time.
The game ends when the user indicates they want to quit. When the user quits, whatever existing caravans have already been created will leave the city. Stats are then displayed to the user regarding successes and failures. Number of days in operation, total number of caravans, number of successful and failed caravan trips, number of animals saved and the number of each animal saved. Users will also be classified as beginner, amateur, intermediate, advanced, or expert, based on their success stats.
-Number of successful caravans determines player classification:
-Beginner < 6
-amateur 7-12
-intermediate 13-18
-advanced 19-24
-expert 25+
-What was the actual failure rate of each caravan route?
-Hows is the route a caravan takes selected? The USER selects it when they create the caravan.