1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
olganol [36]
3 years ago
7

Create a Pet class that keeps track of the name, age, weight, type of animal, and breed for records at an animal clinic with 2 c

onstructors, accessor (get) methods, a toString method, and mutator (set) methods for each instance variable.
Computers and Technology
1 answer:
kati45 [8]3 years ago
4 0

Answer:

class Pet():

   def __init__(self, name, age, weight, animal_type, breed):

       self.name = name

       self.age = age

       self.weight = weight

       slef.aT = animal_type

       self.breed = breed

   def set_name(self, name):

       self.name = name

   def get_name(self):

       return self.name

   def set_age(self, age):

       self.age = age

   def get_age(self):

       return self.age

   def set_weight(self, weight):

       self.weight = weight

   def get_weight(self):

       return self.weight

   def set_Type(self, type):

       self.aT = type

   def get_Type(self):

       return self.aT

   def set_breed(self, breed):

       self.breed = breed

   def get_breed(self):

       return self.breed

   def toString(self):

       print(f"The pet {self.name} is {self.age} year old and weighs {self.weight}lbs. The pet is a {self.breed} breed of {self.aT}.")

Explanation:

The python program defines a class called Pet that has five features namely name, age, weight, animal_type, and breed of the animal. The set and get methods of the class are the mutators and accessor respectively. The final method of the class is the 'toString' method that prints the summary of the Pet object instance.

You might be interested in
Wordwrap forces you to stop typing words and press the enter key at the end of each line.
kakasveta [241]
No. You can just keep typing and the words will wrap to the next line[s].
8 0
3 years ago
Can someone pelaseee help
aalyn [17]

Answer:

Explanation:

develloppemetn de grace en option est logiquement une biologiste experimenter des annes 1256 a toulouse en france

6 0
2 years ago
FTP is commonly used to __________ and __________ files to a server.
Aleks [24]

Answer:

upload; download

Explanation:

FTP (File Transfer Protocol) is an internet protocol used to upload and download a file to a server, there are some programs help us to transfer this data to a server, in some cases, we're going to need these programs to upload website files to the server like images or videos, or some websites where do you need a user and passwords to upload file by FTP

8 0
3 years ago
The range A2:B4 has how many cells?   A. 2   B. 4   C. 6   D. 8
olya-2409 [2.1K]
The answer to that is D.
3 0
3 years ago
Read 2 more answers
In order for a computer to pass the ________, a human should have a conversation with it and not be able to tell if it was a mac
Katena32 [7]

The test that a computer needs to pass after a human's conversation with it and not be able to tell if it was a machine or a human is; Turing Test

<h3>Test of Computers</h3>

The correct answer to the blank portion of the question is Turing test. This is because Turing Test is a test of a computer's ability to exhibit intelligent behavior that is equivalent to, or indistinguishable from, that of a human's behavior.

Finally, If the evaluator cannot reliably tell the computer from the human, the machine is said to have passed the test.

Read more about Test of Computer at; brainly.com/question/21283135

8 0
2 years ago
Other questions:
  • I need someone who knows HTML to finish the code.
    12·2 answers
  • Which are valid double statements for java? double a = 0; double b = -1.0; double c = -425; double d = 6340; double e = -1.0; do
    12·2 answers
  • What is meant by encapsulating semaphores? Bring out the need for it
    12·1 answer
  • 5. Question<br> The control flag that isn't really in use by modern networks is the<br> flag.
    15·1 answer
  • Justin signed a rental agreement for his new condo. How long is his lease? a p e x
    15·1 answer
  • Intranets:
    8·1 answer
  • Which question about whale sharks is nonscientific?
    11·2 answers
  • The acronym pies is used to describe improvised explosive devices (ied) components. pies stands for:
    13·2 answers
  • Which graphic file format is used for commercial purposes.
    10·1 answer
  • Which of the following is true about overloaded methods?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!