This question has been answered
Question

I recommend this question/problem for tutors who are skilled in AP Computer Science A. There should be three classes that are called, Turkey, TurkeyFarm, and TurkeyTester (runner class). For the TurkeyFarm class, do not use ArrayLists, use a static array of the Turkey references. Please write the code that is in only learned from AP Computer Science A, not beyond that. Read the instructions carefully. Thank you.


Instructions:

Instructions.png


An example of what the output of TurkeyTester (runner class) would look like:

TurkeyTester Output.png

Image transcriptions

1 - Create a Turkey Class with at least 3 instance variables, constructors, set/get methods and a toString method. 2 - Create a Farm Class that has a static array of Turkey references, an add method that adds a turkey at a specific spot, a remove method, a get method that returns a turkey at a specific spot, and a toString method that prints all the turkeys on the farm. 3 - Create a runner that implements the user interface demonstrated in the sample output.

Turkey Farm Software V0.3 enter 1 to add a turkey enter 2 to remove a turkey enter 3 to update weight enter 4 to print the list of turkeys enter 5 to end entry: 1 Enter turkey name: Atul 0 Atul the turkey is 1.0 ounces Turkey Farm Software V0.3 enter 1 to add a turkey enter 2 to remove a turkey enter 3 to update weight enter 4 to print the list of turkeys enter 5 to end entry: 3 0 Atul the turkey is 1.0 ounces Hhich turkey do you want to adjust weight: 0 What is htul's new weight: 320 0 Atul the turkey is 320.0 ounces Turkey Farm Software y0.0 enter 1 to add a turkey enter 2 to remove a turkey enter 3 to update weight enter 4 to print the list of turkeys enter 5 to end entry: 1 Enter turkey name: Johnny 0 Atul the turkey is 320.0 ounces

Answered by Expert Tutors
Step-by-step explanation
4 Attachments
Screenshot (737).png
png
Screenshot (738).png
png
Screenshot (739).png
png
Screenshot (740).png
png
The student who asked this found it Helpful
Overall rating 100%
1 - Create a Turkey Class with at least 3 instance variables, constructors, set/get methods and a toString method. 2 - Create a Farm Class that has a...
Get unstuck

230,453 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses