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
A carbon resistor has a resistance of 976 ohms at 0 degrees C. Determine its resistance at 89 degrees C​
nignag [31]

Answer:

1028.1184 Ohms

Explanation:

<u>Given the following data;</u>

  • Initial resistance, Ro = 976 Ohms
  • Initial temperature, T1 = 0°C
  • Final temperature, T2 = 89°C

Assuming the temperature coefficient of resistance for carbon at 0°C is equal to 0.0006 per degree Celsius.

To find determine its new resistance, we would use the mathematical expression for linear resistivity;

R_{89} = R_{0} + R_{0}(\alpha T)

Substituting into the equation, we have;

R_{89} = 976 + 976*(0.0006*89)

R_{89} = 976 + 976*(0.0534)

R_{89} = 976 + 52.1184

R_{89} = 1028.1184 \ Ohms

5 0
3 years ago
Which statements describe the motion of car A and car B? Check all that apply. Car A and car B are both moving toward the origin
vekshin1

Answer:

car a is moving faster than the car b

8 0
3 years ago
Which of the following explains the main reason to cut a piece of wood on the outside of the measurement mark?
maks197457 [2]
I think it’s D ?? I’m not completely sure tho
4 0
3 years ago
PLEASE HURRY!!!
Naily [24]

Answer:

A

Explanation:

He should get a job in engineering to see what it's like to work in the field.

3 0
3 years ago
Read 2 more answers
If a generator has 120 volts and 22 amps, how many ohms are needed so the generator will not explode.
daser333 [38]
120 volt divided by 22 ampere
= 5.4545454545455 ohm (Ω)
P = V × I
= 120 volt × 22 ampere
= 2640 watt (W)
7 0
3 years ago
Other questions:
  • Remy noticed that after oiling his skateboard wheels, it was easier to reach the speeds he needed to perform tricks. How did the
    6·1 answer
  • Convert 0.025 in into mm.
    11·2 answers
  • Refectories are one of the types of ceramics that have low melting temperature. a)-True b)-False
    7·1 answer
  • The purpose of daytime running lights (DRLs) is to _____.
    5·2 answers
  • A simple ideal Rankine cycle with water as the working fluid operates between the pressure limits of 4 MPa in the boiler and 25
    14·2 answers
  • A fatigue test is performed on 69 rotating specimens made of 5160H steel. The measured number of cycles to failure (L in kcycles
    6·1 answer
  • A fluid of specific gravity 0.96 flows steadily in a long, vertical 0.71-in.-diameter pipe with an average velocity of 0.90 ft/s
    5·2 answers
  • Water is flowing in a metal pipe. The pipe OD (outside diameter) is 61 cm. The pipe length is 120 m. The pipe wall thickness is
    9·1 answer
  • What do you understand by the term phase angle?<br>​
    13·1 answer
  • A high compression ratio may result in;
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!