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
rosijanka [135]
3 years ago
10

The base class Pet has attributes name and age. The derived class Dog inherits attributes from the base class Pet class and incl

udes a breed attribute. Complete the program to: Create a generic pet, and print the pet's information using print_info(). Create a Dog pet, use print_info() to print the dog's information, and add a statement to print the dog's breed attribute.

Engineering
1 answer:
Nonamiya [84]3 years ago
3 0

Answer:

Explanation:

class Pet:

   def __init__(self):

       self.name = ''

       self.age = 0

   def print_info(self):

       print('Pet Information:')

       print('   Name:', self.name)

       print('   Age:', self.age)

class Dog(Pet):

   def __init__(self):

       Pet.__init__(self)

       self.breed = ''

def main():

   my_pet = Pet()

   my_dog = Dog()

   pet_name = input()

   pet_age = int(input())

   dog_name = input()

   dog_age = int(input())

   dog_breed = input()

   my_pet.name = pet_name

   my_pet.age = pet_age

   my_pet.print_info()

   my_dog.name = dog_name

   my_dog.age = dog_age

   my_dog.breed = dog_breed

   my_dog.print_info()

   print('   Breed:', my_dog.breed)

main()

You might be interested in
What to you do if you have a flat tirer
Vika [28.1K]

Answer: change the tires

Explanation: you can’t drive on a flat tire

6 0
3 years ago
جائت فكرة ربط الحواسيب لغرض نقل البيانات و مشاركتها و بعدها بفتره قصيره جائت إمكانية مشاركة الموارد بين الحواسيب صح ام خطأ​
melamori03 [73]

Answer:

بدلاً من ذلك يُشار إليه باسم مشاركة أو مشاركة شبكة ، الدليل المشترك هو دليل أو مجلد يمكن الوصول إليه من قبل العديد من المستخدمين على الشبكة. هذه هي الطريقة الأكثر شيوعًا للوصول إلى المعلومات ومشاركتها على شبكة محلية

Explanation:

5 0
3 years ago
Read 2 more answers
A hot brass plate is having its upper surface cooled by impinging jet of air at temperature of 15°C and convection heat transfer
gulaghasi [49]

Answer:

809.98°C

Explanation:

STEP ONE: The first step to take in order to solve this particular Question or problem is to find or determine the Biot value.

Biot value = (heat transfer coefficient × length) ÷ thermal conductivity.

Biot value = (220 × 0.1)÷ 110 = 0.2.

Biot value = 0.2.

STEP TWO: Determine the Fourier number. Since the Biot value is greater than 0.1. Tis can be done by making use of the formula below;

Fourier number = thermal diffusivity × time ÷ (length)^2.

Fourier number = (3 × 60 × 33.9 × 10^-6)/( 0.1)^2 = 0.6102.

STEP THREE: This is the last step for the question, here we will be calculating the temperature of the center plane of the brass plate after 3 minutes.

Thus, the temperature of the center plane of the brass plane after 3 minutes = (1.00705) (0.89199) (900- 15) + 15.

= > the temperature of the center plane of the brass plane after 3 minutes = 809.98°C.

5 0
3 years ago
A thin-walled cylinder of average radius 50 mm, and wall thickness 1.0 mm is of length 500 mm, and is built into a wall at one e
kotykmax [81]

Answer:

0

Explanation:

7 0
3 years ago
Water enters a tank from two pipes, one with a flow rate of 0.3 kg/s and the other with a flow rate of 0.1 kg / s. The tank has
stiks02 [169]

Answer:

total amount of water after 2 min will be 84.4 kg/s

Explanation:

Given data:

one tank inflow = 0.1 kg/s

2nd tank inflow = 0.3 kg/s

3rd tank outflow = 0.03 kg/s

Total net inflow in tank is = 0.3 +0.1 =0.4 kg/s

From third point, outflow is 0.03 kg/s

Therefore, resultant in- flow = 0.4 - 0.03

Resultant inflow is  = 0.37 kg/s

Tank has initially 40 kg water

In 2 min ( 2*60 sec), total inflow in tank is 0.37*60*2 = 44.4 kg

So, total amount of water after 2 min will be = 40+44.4 = 84.4 kg

8 0
3 years ago
Other questions:
  • A commercial refrigerator with refrigerant -134a as the working fluid is used to keep the refrigerated space at -30C by rejectin
    10·3 answers
  • List and describe three classifications of burns to the body.
    13·2 answers
  • Exceeding critical mach may result in the onset of compressibility effects such as:______.
    6·1 answer
  • The fins attached to a surface are determined to have an effectiveness of 0.9. Do the rate of heat transfer from the surface dec
    11·1 answer
  • You have designed a bone plate that is manufactured via rolling under cold working conditions, and tests show good biocompatibil
    14·1 answer
  • Annealing is a process by which steel is reheated and then cooled to make it less brittle. Consider the reheat stage for a 100-m
    14·1 answer
  • Can be used to eliminate rubbing friction of wheel touching frame. 1.Traction 2.Thrust washer
    9·1 answer
  • Writing an excellent problem statement will not help guide you through the rest of the process and steer you towards the BEST so
    8·1 answer
  • Limited time only for christmas give yourself free 100 points Thats what im talking about
    5·2 answers
  • which of the following processes would be appropriate for cutting a narrow slot, less than 0.015 inch wide, in a 3/8- inch thick
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!