Question: Submit a JAVA document. And also MS Word document containing the source code and Screen captures of the output. In the advanced animal tracking system
Submit a JAVA document. And also MS Word document containing the source code and Screen captures of the output.
In the advanced animal tracking system for FunWorld Zoo, create a Java class named AdvancedANIMAL with the following features:
Data Attributes:
String AName Animal Name
String AID Animal ID
String Description
int Age
double Weight
ArrayList vaccinations a list to store the names of vaccinations received
Methods:
Implement a method named addVaccinationString vaccineName that adds the name of a vaccination to the list.
Implement a method named displayVaccinations that displays the list of vaccinations for the animal.
Implement a static method named averageWeightArrayList animals that calculates and returns the average weight of a list of animals.
Constructor:
Implement a constructor that initializes the data attributes.
Object Creation and Demonstration:
Create THREE AdvancedANIMAL objects with data of your choice.
Add vaccinations to each animal using the addVaccination method.
Display the vaccinations for each animal using the displayVaccinations method.
Calculate and display the average weight of the three animals using the averageWeight method.
Marks Distribution:
Define the AdvancedANIMAL class with extended data attributes and methods: marks
Implement the constructor: marks
Demonstrate the usage of methods and object creation: marks
Submit a JAVA document. And also MS Word document containing the source code and Screen captures of the output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
