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
This search compares the target value with the middle element in the collection, then ignores the half of the collection in whic
love history [14]

Answer:

d) Binary

Explanation:

Binary search is a search algorithm that finds the position of a value in an ordered array. It compares the value with the element in the middle of the array, if they are not equal, half in which the value cannot be eliminated and the search continues in the remaining half until the value is found.

7 0
2 years ago
A masonry facade consisting of 3,800 square feet is to be constructed for a building. The total cost per worker hour is estimate
lana66690 [7]

Answer:

Days: 6.9444 days

Production rate: 547.2035 ft²/s

Explanation:

the solution is attached in the Word file

Download docx
6 0
2 years ago
How to study thermodynamics?​
expeople1 [14]

It is study of the relationships between heat, temprature, work and energy

7 0
2 years ago
Read 2 more answers
The heat transfer coefficient decreases with increasing x for both the laminar and turbulent regions a. True b. False
REY [17]

Answer:

A) True  

Explanation:

Yes this is true when length is creases the heat transfer coefficient decease with length.

The heat transfer(h) coefficient is varying with x by given expression

For Laminar flow

h \alpha \dfrac{1}{x^{\frac{1}{2}}}

For turbulent flow

h \alpha \dfrac{1}{x^{\frac{1}{5}}}

But when flow is in transitional state the heat heat transfer(h) coefficient is increases with x.But for laminar as well as turbulent flow h is decrease when x increases.

3 0
2 years ago
Can you use isentropic efficiency for a non-adiabatic compressor?
vodomira [7]
Mark brainliest please!

Isothermal work will be less than the adiabatic work for any given compression ratio and set of suction conditions. The ratio of isothermal work to the actual work is the isothermal efficiency. Isothermal paths are not typically used in most industrial compressor calculations.

Compressors

Compressors are used to move gases and vapors in situations where large pressure differences are necessary.

Types of Compressor

Compressors are classified by the way they work: dynamic (centrifugal and axial) or reciprocating. Dynamic compressors use a set of rotating blades to add velocity and pressure to fluid. They operate at high speeds and are driven by steam or gas turbines or electric motors. They tend to be smaller and lighter for a given service than reciprocating machines, and hence have lower costs.

Reciprocating compressors use pistons to push gas to a higher pressure. They are common in natural gas gathering and transmission systems, but are less common in process applications. Reciprocating compressors may be used when very large pressure differences must be achieved; however, since they produce a pulsating flow, they may need to have a receiver vessel to dampen the pulses.

The compression ratio, pout over pin, is a key parameter in understanding compressors and blowers. When the compression ratio is below 4 or so, a blower is usually adequate. Higher ratios require a compressor, or multiple compressor stages, be used.

When the pressure of a gas is increased in an adiabatic system, the temperature of the fluid must rise. Since the temperature change is accompanied by a change in the specific volume, the work necessary to compress a unit of fluid also changes. Consequently, many compressors must be accompanied by cooling to reduce the consequences of the adiabatic temperature rise. The coolant may flow through a jacket which surrounds the housing with liquid coolant. When multiple stage compressors are used, intercooler heat exchangers are often used between the stages.

Dynamic Compressors

Gas enters a centrifugal or axial compressor through a suction nozzle and is directed into the first-stage impeller by a set of guide vanes. The blades push the gas forward and into a diffuser section where the gas velocity is slowed and the kinetic energy transferred from the blades is converted to pressure. In a multistage compressor, the gas encounters another set of guide vanes and the compression step is repeated. If necessary, the gas may pass through a cooling loop between stages.

Compressor Work

To evaluate the work requirements of a compressor, start with the mechanical energy balance. In most compressors, kinetic and potential energy changes are small, so velocity and static head terms may be neglected. As with pumps, friction can be lumped into the work term by using an efficiency. Unlike pumps, the fluid cannot be treated as incompressible, so a differential equation is required:

Compressor Work
Evaluation of the integral requires that the compression path be known - - is it adiabatic, isothermal, or polytropic?
uncooled units -- adiabatic, isentropic compression
complete cooling during compression -- isothermal compression
large compressors or incomplete cooling -- polytropic compression
Before calculating a compressor cycle, gas properties (heat capacity ratio, compressibility, molecular weight, etc.) must be determined for the fluid to be compressed. For mixtures, use an appropriate weighted mean value for the specific heats and molecular weight.

Adiabatic, Isentropic Compression

If there is no heat transfer to or from the gas being compressed, the porocess is adiabatic and isentropic. From thermodynamics and the study of compressible flow, you are supposed to recall that an ideal gas compression path depends on:

Adiabatic Path
This can be rearranged to solve for density in terms of one known pressure and substituted into the work equation, which then can be integrated.
Adiabatic Work
The ratio of the isentropic work to the actual work is called the adiabatic efficiency (or isentropic efficiency). The outlet temperature may be calculated from
Adiabatic Temperature Change
Power is found by multiplying the work by the mass flow rate and adjusting for the units and efficiency.
Isothermal Compression

If heat is removed from the gas during compression, an isothermal compression cycle may be achieved. In this case, the work may be calculated from:

http://facstaff.cbu.edu/rprice/lectures/compress.html
4 0
3 years ago
Other questions:
  • B1) 20 pts. The thickness of each of the two sheets to be resistance spot welded is 3.5 mm. It is desired to form a weld nugget
    12·1 answer
  • A Service Schedule is...
    8·2 answers
  • An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate (ϵ˙) is found to be
    8·1 answer
  • Question 5(Multiple Choice Worth 2 points)
    10·1 answer
  • An aluminum bar 125 mm long with a square cross section 16 mm on an edge is pulled in tension with a load of 66,700 N and experi
    14·1 answer
  • Consider the formation of p-nitrophenol from p-nitrophenyl trimethyl acetate. The process is known as enzymatic hydrolysis and i
    7·1 answer
  • Explain the proper uses of shop equipment. (explain to me how to use 3 pieces of shop equipment.)
    7·1 answer
  • Describe how to mix and apply body filler?
    13·1 answer
  • In a morphological matrix, which of the following contains the parameters that are essential to a design?
    7·1 answer
  • The corner store sells candy in ₵20, ₵30 and ₵50 packages. List all the ways in which the Candyman
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!