Answered step by step
Verified Expert Solution
Question
1 Approved Answer
undefined 1.10 YouTrylt - Chia Create a class called Chia that represents a Chia Pet. The class diagram and state diagram for this class are
undefined
1.10 YouTrylt - Chia Create a class called Chia that represents a Chia Pet. The class diagram and state diagram for this class are shown below: Chia m public Chian public void talkToChiao public void yelArhia public void singToChiao public String getMoodo talk to chia Sad Happy yell at chia sing to chia Sing to chia Terrified yell at chia talk to chia . The class diagram does not specify the attributes, so you get to decide! Your class should have the following constructors A default constructor that creates a Chia Pet that is starts off Happy. Your class should have the following behaviors A method called talkIoChia that allows you to talk to your Chia Pet. A method called yellAt Chia that allows you to yell at your Chia Pet A method called singIoChia that allows you to sing to your Chia Pet. A method called getXood that returns the Chia's current mood. This method should return Happy, Sad, or Terrified depending your the Chia Pet's mood. Please refer to the state diagram to determine how the Chia's mood should change based on how it you interact with it 212376.911062 LAB ACTIVITY 1.10.1: YouTryt - Chia 0/10 Submission Instructions Compile command javac Chia java -Xlint:211 -encoding utf-8 We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. Chia.java Drag file here Choose on hard drive orStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started