Project – dinosaur care system
We’ll continue to work on our “dinosaur care system” by adding functionality to log daily care activities for dinosaurs using the Java Core API. This includes features to accept user input, maintain a history of activities, and store dinosaur health data over time. Don’t worry – we’ll break this down for you step by step.
Step 1: Add additional Java classes:
- Create a new package named
coreapi. - Inside this package, create a class named
Dinosaur. This class should have properties such as name, species, health status, and so on. - Also, create a class named
Activitywith properties such as name, date, dinosaur, and so on.
Step 2: Extend the dinosaur care system:
- In your
DinosaurCareSystemclass, create aListto holdDinosaurobjects, and anotherListto holdActivityobjects. - Create a method called
addDinosaur()that takes user input to create a newDinosaurobject and...