Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedundefined

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 or

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago