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
BaLLatris [955]
3 years ago
8

Two variables, num_boys and num_girls, hold the number of boys and girls that have registered for an elementary school. The vari

able budget holds the number of dollars that have been allocated to the school for the school year. Write code that prints out the per-student budget (dollar spent per student). If a division by zero error takes place, just print out the word "unavailable".
Engineering
1 answer:
Flauer [41]3 years ago
3 0

Answer:

Using python

num_boys = int(input("Enter number of boys :"))

num_girls = int(input("Enter number of girls :"))

budget = int(input("Enter the number of dollars spent per school year :"))

try:

dollarperstudent = budget/(num_boys+num_girls)

print("Dollar spent per student : "+str(dollarperstudent))#final result

except ZeroDivisionError:

print("unavailable")

You might be interested in
Which of the following statements about glycogen metabolism is FALSE?
Ratling [72]

Answer:

Glycogen is the primary energy source for muscle and liver cells.

Explanation:

Glycogen is a readily mobilized storage form of glucose. It is a very large, branched polymer of glucose residues that can be broken down to yield glucose molecules when energy is needed. Most of the glucose residues in glycogen are linked by α-1,4-glycosidic bonds. Branches at about every tenth residue are created by α-1,6-glycosidic bonds.

Glycogen is not as reduced as fatty acids are and consequently not as energy rich. Why do animals store any energy as glycogen? Why not convert all excess fuel into fatty acids? Glycogen is an important fuel reserve for several reasons. The controlled breakdown of glycogen and release of glucose increase the amount of glucose that is available between meals. Hence, glycogen serves as a buffer to maintain blood-glucose levels. Glycogen's role in maintaining blood-glucose levels is especially important because glucose is virtually the only fuel used by the brain, except during prolonged starvation. Moreover, the glucose from glycogen is readily mobilized and is therefore a good source of energy for sudden, strenuous activity. Unlike fatty acids, the released glucose can provide energy in the absence of oxygen and can thus supply energy for anaerobic activity.

3 0
4 years ago
A bus travels the 100 miles between A and B at 50 mi/h and then another 100 miles between B and C at 70 mi/h.
stira [4]

Answer:

c. less than 60 mi/h

Explanation:

To calculate the average speed of the bus, we need to calculate the total distance traveled by the bus, as well as the total time of travel of the bus.

Total Distance Traveled = S = 100 mi + 100 mi

S = 200 mi

Now, for total time, we calculate the times for both speeds from A to b and then B to C, separately and add them.

Total Time = t = Time from A to B + Time from B to C

t = (100 mi)/(50 mi/h) + (100 mi)(70 mi/h)

t = 2 h + 1.43 h

t = 3.43 h

Now, the average speed of bus will be given as:

Average Speed = V = S/t

V = 200 mi/3.43 h

<u>V = 58.33 mi/h</u>

It is clear from this answer that the correct option is:

<u>c. less than 60 mi/h</u>

7 0
3 years ago
A liquid refrigerant (sg=1,2) is flowing at a weight flow rate of 20,9 N/h. Refrigerant flashes into a vapor and its specific we
Iteru [2.4K]

Answer:

Explanation:

volume of 20.9 N

= 20.9 / 11.5 m³

= 1.8174 m³

In one hour 1.8174 m³ flows

in one second volume flowing = 1.8174 / 60 x 60

= 5 x 10⁻⁴ m³

Rate of volume flow = 5 x 10⁻⁴ m³ / s .

5 0
3 years ago
Why does an object under forced convection reach a steady-state faster than an object subjected to free-convection?
bonufazy [111]

Answer:

Free convection:

   When heat transfer occurs due to density difference between fluid then this type of heat transfer is know as free convection.The velocity of fluid is zero or we can say that fluid is not moving.

Force convection:

   When heat transfer occurs due to some external force then this type of heat transfer is know as force convection.The velocity of fluid is not zero or we can say that fluid is moving in force convection.

Heat transfer coefficient of force convection is high as compare to the natural convection.That is why heat force convection reach a steady-state faster than an object subjected to free-convection.

We know that convective heat transfer given as

 q = h  A ΔT

h=Heat transfer coefficient

A= Surface area

ΔT = Temperature difference

5 0
4 years ago
Create a series of eight successive displacements that would program a robot to move in an octagonal path that is as close as yo
Komok [63]

Answer:

bts biot bts biot jungkukkk

jungkukkkbiot

Explanation:

bts biot bts biot jungkukkk

jungkukkkbiot

5 0
3 years ago
Other questions:
  • Two kg of N2 at 450 K, 7 bar is contained in a rigid tank connected by a valve to another rigid tank holding 1 kg of O2 at 300 K
    13·1 answer
  • A six-lane freeway (three lanes in each direction) currently operates at maximum LOS C conditions. The lanes are 11 ft wide, the
    5·1 answer
  • Water at 310 K and a flow rate of 4 kg/s enters an alumina tube (k=177Wm K1) with an inner diameter of 0.20 m and a wall thickne
    13·1 answer
  • Wiring harnesses run
    12·1 answer
  • For Laminar flow conditions, what size pipe will deliver 90 gpm of medium oil at 40°F (υ = 6.55 * 10^‐5)?
    12·1 answer
  • Sirens and flashing lights do NOT indicate that _____ may be nearby.
    7·2 answers
  • Determine the wattmeter reading when it is connected to resistor load.​
    11·1 answer
  • A rigid vessel with a volume of 10 m3 contains a water-vapor mixture at 400 kPa. If the quality is 60 percent, find the mass. Th
    11·1 answer
  • While, Do...while, and For loops can best be characterized as which of the following?
    13·1 answer
  • based on the graph shown, for any given output level, the veritcal distance between the avc and the atc curves represents
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!