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
Primary mental skills needed for riding a motorcycle
Irina-Kira [14]

Answer:

You have to know the basic mechanics to help you correctly use the motorcycle, and you also have to have the right mindset - knowing you can ride it, and having determination. All of these factors are the primary mental skills you need for riding a motorcycle.

5 0
2 years ago
What is 39483048^349374*3948048/3i4u4
Verizon [17]

Answer:

1.  3.81813506×10^2^9

2.  1.71479428×10^6^5

3.  9.38483383×10^2^6

4.  1.150847×10^2^9

Explanation:

Feel free to give brainliest

Have a great day!

3 0
2 years ago
How to design a solar panel<br>​
artcher [175]

Answer:

#1) Find out how much power you need

#2 Calculate the amount of batteries you need.

#3 Calculate the number of solar panels needed for your location and time of year.

#4 Select a solar charge controller.

#5 Select an inverter.

#6 Balance of system

Explanation: To design solar panel, consider the following steps

1.) Find the power consumption demands

The first step in designing a solar PV system is to find out the total power and energy consumption of all loads that need to be supplied by the solar PV system as follows:

Calculate total Watt-hours per day for each appliance used.

 Add the Watt-hours needed for all appliances together to get the total Watt-hours per day which must be delivered to the appliances.

Calculate total Watt-hours per day needed from the PV modules.

Multiply the total appliances Watt-hours per day times 1.3 (the energy lost in the system) to get the total Watt-hours per day which must be provided by the panels.

2. Size the PV modules

Different size of PV modules will produce different amount of power. To find out the sizing of PV module, the total peak watt produced needs. The peak watt (Wp) produced depends on size of the PV module and climate of site location. We have to consider panel generation factor which is different in each site location. For Thailand, the panel generation factor is 3.43. To determine the sizing of PV modules, calculate as follows:

2.1 Calculate the total Watt-peak rating needed for PV modules

Divide the total Watt-hours per day needed from the PV modules (from item 1.2) by 3.43 to get the total Watt-peak rating needed for the PV panels needed to operate the appliances.

Calculate the number of PV panels for the system

Divide the answer obtained in item 2.1 by the rated output Watt-peak of the PV modules available to you. Increase any fractional part of result to the next highest full number and that will be the 

number of PV modules required.

Result of the calculation is the minimum number of PV panels. If more PV modules are installed, the system will perform better and battery life will be improved. If fewer PV modules are used, the system may not work at all during cloudy periods and battery life will be shortened.

3. Inverter sizing

An inverter is used in the system where AC power output is needed. The input rating of the inverter should never be lower than the total watt of appliances. The inverter must have the same nominal voltage as your battery.

For stand-alone systems, the inverter must be large enough to handle the total amount of Watts you will be using at one time. The inverter size should be 25-30% bigger than total Watts of appliances. In case of appliance type is motor or compressor then inverter size should be minimum 3 times the capacity of those appliances and must be added to the inverter capacity to handle surge current during starting.

For grid tie systems or grid connected systems, the input rating of the inverter should be same as PV array rating to allow for safe and efficient operation.

4. Battery sizing

The battery type recommended for using in solar PV system is deep cycle battery. Deep cycle battery is specifically designed for to be discharged to low energy level and rapid recharged or cycle charged and discharged day after day for years. The battery should be large enough to store sufficient energy to operate the appliances at night and cloudy days. To find out the size of battery, calculate as follows:

     4.1 Calculate total Watt-hours per day used by appliances.

     4.2 Divide the total Watt-hours per day used by 0.85 for battery loss.

     4.3 Divide the answer obtained in item 4.2 by 0.6 for depth of discharge.

     4.4 Divide the answer obtained in item 4.3 by the nominal battery voltage.

     4.5 Multiply the answer obtained in item 4.4 with days of autonomy (the number of days that you need the system to operate when there is no power produced by PV panels) to get the required Ampere-hour capacity of deep-cycle battery.

Battery Capacity (Ah) = Total Watt-hours per day used by appliancesx Days of autonomy

(0.85 x 0.6 x nominal battery voltage)

5. Solar charge controller sizing

The solar charge controller is typically rated against Amperage and Voltage capacities. Select the solar charge controller to match the voltage of PV array and batteries and then identify which type of solar charge controller is right for your application. Make sure that solar charge controller has enough capacity to handle the current from PV array.

For the series charge controller type, the sizing of controller depends on the total PV input current which is delivered to the controller and also depends on PV panel configuration (series or parallel configuration).

According to standard practice, the sizing of solar charge controller is to take the short circuit current (Isc) of the PV array, and multiply it by 1.3

Solar charge controller rating = Total short circuit current of PV array x 1.3

5 0
3 years ago
Which statement about lean manufacturing is true when you compare it to mass production?
Len [333]
Where are the statements then bbs lol
6 0
2 years ago
Energy.
alexandr402 [8]

Answer:

modern vehicles are made to crunch up a little bit so they that absorbe some of the impact instead of you

Explanation:

8 0
3 years ago
Other questions:
  • What are the seven problem solving steps?
    12·1 answer
  • 5) A 80-kg man has a total foot imprint area of 480 cm2. Determine the pressure this man exerts on the ground if (a) he stands o
    5·1 answer
  • Air at 300 K and 100 kPa steadily flows into a hair dryer having electrical work input of 1500 W. Because of the size of the air
    6·2 answers
  • Question 9 of 25
    12·1 answer
  • A reversible refrigeration cycle operates between cold and hot reservoirs at temperatures TC and TH, respectively. (a) If the co
    6·1 answer
  • What should you consider when choosing the type of hearing protection you use?
    15·1 answer
  • Why is there an Engineering Process?
    15·2 answers
  • Find the remaining trigonometric function of 0 if
    13·1 answer
  • 10.) A solid circular titanium control rod at 7,000 lb axial tension force where stress must not
    15·1 answer
  • Why is California a good place for engineers to build suspension bridges?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!