answer.
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
ZanzabumX
2 months ago
7

Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3

Computers and Technology
1 answer:
zubka84 [1K]2 months ago
6 0

Answer:

Explanation:

For this illustration, I'll provide a Python program step-by-step:

  • We define four variables regarding our zoo, including the zoo count and the average.
  • The average is calculated by summing the totals of owls and dividing by the number of zoos.
  • Finally, we display the value stored in 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))

You might be interested in
Allows you to manually add an entry to the arp cache that resolves the ip address inetaddr to the physical address etheraddr. wh
Amiraneli [1052]
In this situation, when the Adaptor or router gets the destination IP address (even if an incorrect MAC address is entered), it would strip the IP address from the Ethernet frame and using ARP, it will obtain the accurate MAC address of the destination.
6 0
2 months ago
8.14 Consider a system in which bus cycles takes 500 ns. Transfer of bus control in either direction, from processor to I/O devi
Harlamova29_29 [1022]

Answer:

A) 2.56 ms

B) 128 μs

Explanation:

Time per bus cycle = 500 ns

Time taken to transfer bus control = 250 ns

Data transfer rate of the I/O device = 50 KB/s

Data is transferred one byte at a time.

A) Calculate the time the device occupies the bus during the transfer of a block of 128 bytes

Block size for transfer = 128 bytes

Bandwidth available = 50 KB/s

data transfer = (Block size ) / ( Bandwidth)

                     = ( 128 * 8 ) / ( 50 * 10^3 * 8 )

                     = ( 1024 ) / ( 50 * 10^3 * 8 )

                     = 2.56 ms

To compute the actual time taken for transfer, we incorporate the time required for control in both directions:

2.56 ms + 500 ns = 2.56 ms. This is because 500 ns is negligible.

B) cycle stealing mode

In this mode, each byte is transferred individually. The total control time for both directions will be twice the overall time, meaning 2 * 500 ns = 1000 ns. An extra control time of 250 ns is necessary at both ends.

Since 1 byte is transferred at once, the transfer time for 1 byte is 1 μs.

Thus, for 128 bytes = 128 * 1 μs = 128 μs.

4 0
2 months ago
Julio is trying to decide between 4 different vendors for a new IT system. Vendor A is less expensive than Vendor C. Vendor C is
amid [951]

Answer:

Vendor B

Explanation:

By using letters to signify each vendor and the symbol < to indicate which is cheaper, the problem can be summarized as follows: A<C, B<C, B<D, D<A.

These inequalities show that the vendors on the left are less expensive than those on the right, therefore, any vendor appearing on the right in these expressions cannot be the cheapest, ruling out C, D, and A. Thus, the least expensive vendor is B.

8 0
3 months ago
Other questions:
  • Sushant is a new manager and he wants to share his ideas and working protocol with his team.Compare the advantages and disadvant
    13·1 answer
  • Grabar microphone audio icon_person click each item to hear a list of vocabulary words from the lesson. then, record yourself sa
    7·2 answers
  • The ______ is the information center that drivers need to refer to when they're NOT scanning the road.
    7·1 answer
  • Imagine you have a friend who does not know much about programming or HTML, but wants to design his own web page. He has decided
    10·1 answer
  • Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the person's age. Complete fat_burn
    10·1 answer
  • 1.Which of the following class definitions defines a legal abstract class?a. class A { abstract void unfinished() { } }b. class
    7·1 answer
  • Which of the following statements are true about the growth of technology? Select 3 options. A. Individuals in the United States
    6·2 answers
  • Write a program that accepts three decimal numbers as input and outputs their sum​
    11·2 answers
  • Given 3 floating-point numbers. Use a string formatting expression with conversion specifiers to output their average and their
    14·1 answer
  • An administrator is investigating a failure on a trunk link between a Cisco switch and a switch from another vendor. After a few
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!