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
maks197457 [2]
2 years ago
15

1. Complete the following code by taking input from the user for the variables gender. If the user’s gender choice is: a. "Femal

e" tell them "Option 5" b. "Male", tell them "Option7" c. if they enter something different altogether tell them "Option 9 " (10 points)
Engineering
1 answer:
Ksju [112]2 years ago
3 0

Answer:

The solution code is written in Python 3

  1. gender = input("Enter your gender choices (a. Female  b. Male)")
  2. if(gender == "a"):
  3.    print("Option 5")
  4. elif(gender == "b"):
  5.    print("Option 7")
  6. else:
  7.    print("Option 9")

Explanation:

Firstly, we can use the input function to prompt user to input their gender choice (Line 1).

Since there are three possibilities how user can give their gender input, we use if-else-if statements to check the input gender choice. If the choice is "a", show "Option 5", if "b" shows "Option 7" and if something else show "Option 9"

You might be interested in
Determine the angular acceleration of the uniform disk if (a) the rotational inertia of the disk is ignored and (b) the inertia
lukranit [14]

Answer:

α = 7.848 rad/s^2  ... Without disk inertia

α = 6.278 rad/s^2  .... With disk inertia

Explanation:

Given:-

- The mass of the disk, M = 5 kg

- The right hanging mass, mb = 4 kg

- The left hanging mass, ma = 6 kg

- The radius of the disk, r = 0.25 m

Find:-

Determine the angular acceleration of the uniform disk without and with considering the inertia of disk

Solution:-

- Assuming the inertia of the disk is negligible. The two masses ( A & B )  are hung over the disk in a pulley system. The disk is supported by a fixed support with hinge at the center of the disk.

- We will make a Free body diagram for each end of the rope/string ties to the masses A and B.

- The tension in the left and right string is considered to be ( T ).

- Apply newton's second law of motion for mass A and mass B.

                      ma*g - T = ma*a

                      T - mb*g = mb*a

Where,

* The tangential linear acceleration ( a ) with which the system of two masses assumed to be particles move with combined constant acceleration.

- g: The gravitational acceleration constant = 9.81 m/s^2

- Sum the two equations for both masses A and B:

                      g* ( ma - mb ) = ( ma + mb )*a

                      a =  g* ( ma - mb ) / ( ma + mb )

                      a = 9.81* ( 6 - 4 ) / ( 6 + 4 ) = 9.81 * ( 2 / 10 )

                      a = 1.962 m/s^2  

- The rope/string moves with linear acceleration of ( a ) which rotates the disk counter-clockwise in the direction of massive object A.

- The linear acceleration always acts tangent to the disk at a distance radius ( r ).

- For no slip conditions, the linear acceleration can be equated to tangential acceleration ( at ). The correlation between linear-rotational kinematics is given below :

                     a = at = 1.962 m/s^2

                     at = r*α      

Where,

           α: The angular acceleration of the object ( disk )

                    α = at / r

                    α = 1.962 / 0.25

                    α = 7.848 rad/s^2                                

- Take moments about the pivot O of the disk. Apply rotational dynamics conditions:

             

                Sum of moments ∑M = Iα

                 ( Ta - Tb )*r = Iα

- The moment about the pivots are due to masses A and B.

 

               Ta: The force in string due to mass A

               Tb: The force in string due to mass B

                I: The moment of inertia of disk = 0.5*M*r^2

                   ( ma*a - mb*a )*r = 0.5*M*r^2*α

                   α = ( ma*a - mb*a ) / ( 0.5*M*r )

                   α = ( 6*1.962 - 4*1.962 ) / ( 0.5*5*0.25 )

                   α = ( 3.924 ) / ( 0.625 )

                   α = 6.278 rad/s^2

6 0
2 years ago
Water (cp = 4180 J/kg·°C) enters the 2.5 cm internal diameter tube of a double-pipe counter-flow heat exchanger at 17°C at a rat
aksik [14]

Answer:

Length = 129.55m, 129.55m

Explanation:

Given:

cp of water = 4180 J/kg·°C

Diameter, D = 2.5 cm

Temperature of water in =  17°C

Temperature of water out = 80°C

mass rate of water =1.8 kg/s.

Steam condensing at 120°C

Temperature at saturation = 120°C

hfg of steam at 120°C = 2203 kJ/kg

overall heat transfer coefficient of the heat exchanger = 700 W/m2 ·°C

U = 700 W/m2 ·°C

Since Temperature of steam is at saturation,

temperature of steam going in = temperature of steam out = 120°C

Energy balance:

Heat gained by water = Heat loss by steam

Let specific capacity of steam = 2010kJ/Kg .°C

Find attached the full solution to the question.

3 0
2 years ago
Discuss the nature of materials causing turbidity in
Anestetic [448]

Answer:

a

Explanation:

5 0
2 years ago
Read 2 more answers
A cylindrical drum (2 ft. dia ,3 ft height) is filled with a fluid whose density is 40 lb/ft^3. Determine (a. the total volume o
Ksivusya [100]

Answer:

a)V=9.42\ ft^3

b)Mass in lb = 376.8 lb

Mass in slug = 11.71 slug

c)v=0.025\ ft^3/lb

d)w=1276 \ lb/ft.s^2

Explanation:

Given that

d= 2 ft

r= 1 ft

h= 3 ft

Density

\rho = 40\ lb/ft^3

a)

We know that volume V given as

V=\pi r^2 h

V=\pi \times 1^2\times 3

V=9.42\ ft^3

b)

Mass = Density x volume

mass =40\times 9.42\ lb

mass= 376.8 lb

We know that

1 lb = 0.031 slug

So 376.8 lb= 11.71 slug

Mass in lb = 376.8 lb

Mass in slug = 11.71 slug

c)

we know that specific volume(v) is the inverse of density.

v=\dfrac{1}{\rho}\ ft^3/lb

v=\dfrac{1}{40}\ ft^3/lb

v=0.025\ ft^3/lb

d)

Specific weight(w) is the product of density and the gravity(g).

w= ρ X g

w = 40 x 31.9

w=1276 \ lb/ft.s^2

8 0
2 years ago
Michelle is the general manager of a power plant. This morning, she will meet with city officials to discuss environmental issue
Irina-Kira [14]

Answer:

interpersonal.

Explanation:

Out of all the activities performed by Michelle, three activities involves the interpersonal skills.

1. Meeting with city officials

2. Meeting with section managers

3. Handling the complaint filed by an employee

All these activities involves interpersonal skills. Hence, we can say that she had spent her most of the day by using the interpersonal skills.

6 0
2 years ago
Other questions:
  • An exercise room has six weight-lifting machines that have no motors and seven treadmills, each equipped with a 2.5-hp (shaft ou
    13·1 answer
  • A negative pressure respirator brings fresh air to you through a hose<br>A) True<br>B)False​
    15·2 answers
  • A 5-cm-diameter shaft rotates at 4500 rpm in a 15-cmlong, 8-cm-outer-diameter cast iron bearing (k = 70 W/m·K) with a uniform cl
    10·1 answer
  • Water is to be withdrawn from an 8-m-high water reservoir by drilling a 2.2-cm-diameter hole at the bottom surface. Disregarding
    12·2 answers
  • The atomic radii of a divalent cation and a monovalent anion are 0.77 nm and 0.136 nm, respectively.1- Calculate the force of at
    11·1 answer
  • A rectification column is fed 100 kg mol/h of a mixture of 50 mol % benzene and 50 mol % toluene at 101.32 kPa abs pressure. The
    5·1 answer
  • A glycerin pump is powered by a 5-kW electric motor. The pressure differential between the outlet and the inlet of the pump at f
    13·1 answer
  • Complete the following sentence.
    5·1 answer
  • A liquid with a specific gravity of 2.6 and a viscosity of 2.0 cP flows through a smooth pipe of unknown diameter, resulting in
    6·1 answer
  • Dalton needs to prepare a close-out report for his project. Which part of the close-out report would describe
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!