shane1981sa shane1981sa
  • 22-08-2021
  • Computers and Technology
contestada

Assign avg_owls with the average owls per zoo. Print avg_owls as an integer.

Sample output for inputs: 1 2 4
Average owls per zoo: 2

Respuesta :

Bubbabanks
Bubbabanks Bubbabanks
  • 22-08-2021

Answer:

I'm going to add a python program for this example, step by step:

We declare 4 variables for our zoo, zoo quantity, and the average.

We make the operation for the average where sum the zoo and divide with the quantity

In the last step, we print the variable avg_owls.

num_owls_zoo1 = 1

num_owls_zoo2 = 2

num_owls_zoo3 = 3

num_owls_zoo4 = 4

zoos = 4

avg_owls = 0.0

avg_owls=(num_owls_zoo1+num_owls_zoo2+num_owls_zoo3+num_owls_zoo4)/zoos

print('Average owls per zoo:', int(avg_owls))

Explanation:

Answer Link

Otras preguntas

Uranium is the element used in nuclear power plants. It naturally emits particles from its nucleus. This releases energy that heats water to produce steam. The
Which word contains a word root that means “believe”? credential dictionary dormant genesis
10 POINTS! Aly is 1/3 the age of her mother. The sum of their ages is 52. How old is Aly?
Guysss pleasee help question 8 ASAP
Kells was located on the mainland of ___________. A. Scotland b. Ireland c. England d. Germany Please select the best answer from the choices provided A B C D.
Why did many people in early India accept Buddha message
Point S is located at (4,3) on the coordinate plane. Point S is reflected over the x-axis to create point S' . Point S' is the reflected over the y-axis to crea
What is a choice Malala Yousafzai made?
Please help. Thank you in advance
In guatemala, there are over _____ mayan languages spoken today.