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
BaLLatris [955]
2 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]2 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
The extruder head in a fused- deposition modeling setup has a diameter of 1.25 mm (0.05 in) and produces layers that are 0.25mm
Angelina_Jolie [31]

Answer:

The time taken will be "1 hour 51 min". The further explanation is given below.

Explanation:

The given values are:

Number of required layers:

= \frac{38}{0.25}

= 152 \ layers

Diameter (d):

= 1.25 mm

Velocity (v):

= 40 mm/s

Now,

The area of one layer will be:

= 38\times 38 \ mm^2

= 1444 \ mm^2

The area covered every \second will be:

= d\times v

= 1.25\times 40

= 50 \ mm^2

The time required to deposit one layer will be:

= \frac{1444}{50}

= 28.88 \ sec

The time required for one layer will be:

= 15 \ sec

∴ Total times required for one layer will be:

= 15+28.88

= 43.88 \ sec

So,

Number of layers = 152

Therefore,

Total time will be:

= 152\times 43.88

= 6669.76 \ sec

= 1 \ hour \ 51 \ min

6 0
2 years ago
A single crystal of a metal that has the FCC crystal structure is oriented such that a tensile stress is applied parallel to the
morpeh [17]

The magnitude of applied stress in the direction of 101 is 12.25 MPA and in the direction of 011, it is not defined.                                          

<u>Explanation</u>:        

<u>Given</u>:

tensile stress is applied parallel to the [100] direction

Shear stress is 0.5 MPA.

<u>To calculate</u>:

The magnitude of applied stress in the direction of [101] and [011].

<u>Formula</u>:

zcr=σ cosФ cosλ

<u>Solution</u>:

For in the direction of 101

cosλ = (1)(1)+(0)(0)+(0)(1)/√(1)(2)

cos λ = 1/√2

The magnitude of stress in the direction of 101 is 12.25 MPA

In the direction of 011

We have an angle between 100 and 011

cosλ = (1)(0)+(0)(-1)+(0)(1)/√(1)(2)

cosλ  = 0

Therefore the magnitude of stress to cause a slip in the direction of 011 is not defined.                                                                                                                                                                      

                                                                                   

                                                                                                                                                   

                                                                                                                                                             

5 0
2 years ago
A fatigue test was conducted in which the mean stress was 46.2 MPa and the stress amplitude was 219 MPa.
sleet_krkn [62]

Answer:

a)σ₁ = 265.2 MPa

b)σ₂ = -172.8 MPa

c)Stress\ ratio =-0.65

d)Range = 438 MPa

Explanation:

Given that

Mean stress ,σm= 46.2 MPa

Stress amplitude ,σa= 219 MPa

Lets take

Maximum stress level = σ₁

Minimum stress level =σ₂

The mean stress given as

\sigma_m=\dfrac{\sigma_1+\sigma_2}{2}

2\sigma_m={\sigma_1+\sigma_2}

2 x 46.2 =  σ₁ +  σ₂

 σ₁ +  σ₂ = 92.4 MPa    --------1

The amplitude stress given as

\sigma_a=\dfrac{\sigma_1-\sigma_2}{2}

2\sigma_a={\sigma_1-\sigma_2}

2 x 219 =  σ₁ -  σ₂

 σ₁ -  σ₂ = 438 MPa    --------2

By adding the above equation

2  σ₁ = 530.4

σ₁ = 265.2 MPa

-σ₂ = 438 -265.2 MPa

σ₂ = -172.8 MPa

Stress ratio

Stress\ ratio =\dfrac{\sigma_{min}}{\sigma_{max}}

Stress\ ratio =\dfrac{-172.8}{265.2}

Stress\ ratio =-0.65

Range = 265.2 MPa - ( -172.8 MPa)

Range = 438 MPa

8 0
2 years ago
. A cylindrical metal specimen having an original diameter of 12.8 mm (0.505 in.) and gauge length of 50.80 mm (2.000 in.) is pu
kogti [31]

Answer:

% reduction in area==PR=0.734=73.4%

% elongation=EL=0.42=42%

Explanation:

given do=12.8 mm

df=6.60

Lf=72.4 mm

Lo=50.8 mm

% reduction in area=((\pi*(do/2)^2)-(\pi*(df/2)^2)))/\pi*(do/2)^2

substitute values

% reduction in area=73.4%

% elongation=EL=((Lf-Lo)/Lo))*100

% elongation=((72.4-50. 8)/50.8)*100=42%

6 0
2 years ago
In a heat-treating process, a 1-kg metal part, initially at 1075 K, is quenched in a closed tank containing 100 kg of water, ini
storchak [24]

Answer:

attached below

Explanation:

8 0
2 years ago
Other questions:
  • A square loop of wire surrounds a solenoid. The side of the square is 0.1 m, while the radius of the solenoid is 0.025 m. The sq
    6·1 answer
  • Evan notices a small fire in his workplace. Since the fire is small and the atmosphere is not smoky he decides to fight the fire
    10·1 answer
  • A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
    8·1 answer
  • Argon contained in a closed, rigid tank, initially at 33.7°C, 2.1 bar, and a volume of 4.2 m3, is heated to a final pressure of
    12·1 answer
  • g The function below takes a single string parameter: sentence. Complete the function to return everything but the middle 10 cha
    15·1 answer
  • Refrigerant-134a is compressed from 2 bar, saturated vapor, to 10 bar, 90o C in a compressor operating at steady state. The mass
    11·1 answer
  • A commercial refrigerator with refrigerant-134a as the working fluid is used to keep the refrigerated space at -30C by rejecting
    13·1 answer
  • Explain why failure of this garden hose occurred near its end and why the tear occurred along its length. Use numerical values t
    12·1 answer
  • Which requirement is an appropriate reason for a business to use information technology (IT) tools
    9·1 answer
  • A spring-loaded toy gun is used to shoot a ball of mass m = 1.50 kg straight up in the air. The spring has spring constant k = 6
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!