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
maks197457 [2]
3 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]3 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
A 240 V, 60 Hz squirrel-cage induction motor has a full-load slip of 0.02 and a full-load speed of 1764 rpm. The winding resista
earnstyle [38]

Answer:

full load current = 7.891151 A

so correct option is b. Ir= 7.89

Explanation:

given data

Energy E = V = 240 V

frequency =  60 Hz

full-load slip = 0.02

full-load speed = 1764 rpm

winding resistance = 0.6 Ω

winding reactance = 5 Ω

to find out

rotor current at full-load

solution

we will apply here full load current formula that is express as

full load current = \frac{S*E}{\sqrt{R^2+ (S*X)^2}}    ...................1

here S is full-load slip and E is energy given and R is winding resistance and    X is winding reactance

put here value we get

full load current = \frac{0.02*240}{\sqrt{0.6^2+ (0.02*5)^2}}  

full load current = 7.891151 A

so correct option is b. Ir= 7.89

6 0
3 years ago
The acceleration due to gravity at sea level is g=9.81 m/s^2. The radius of the earth is 6370 km. The universal gravitational co
solmaris [256]

Answer:

Mass of earth will be M=5.96\times 10^{24}kg

Explanation:

We have given acceleration due to gravity g=9.81m/sec^2

Radius of earth = 6370 km =6370\times 10^3m

Gravitational constant G=6.67\times 10^{-11}Nm^2/kg^2

We know that acceleration due to gravity is given by

g=\frac{GM}{R^2}, here G is gravitational constant, M is mass of earth and R is radius of earth

So 9.81=\frac{6.67\times 10^{-11}\times M}{(6370\times 10^3)^2}

M=5.96\times 10^{24}kg

So mass of earth will be M=5.96\times 10^{24}kg

3 0
3 years ago
University administrators have developed a Markov model to simulate graduation rates at their school. Students might drop out, r
abruzzese [7]

Solution :

The percentage of the students who have a chance of repeating their current year = 3%

The drop out students for the first year and the sophomores = 6%

Drop out rate of first year and the seniors = 4%

Now for the state space :

S = { first year(1), sophomores(2), juniors(3), seniors(4), graduates(G), Dropouts(D) }

Therefore

the first year students are indicated as '1'

Sophomores are indicated as '2'

Juniors are indicated as '3'

Seniors are indicated as '4

Graduates are indicated as 'G'

Dropouts are indicated as 'D'

The transition diagram is attached below.

The probability of the students who have the chance of repeating their current year = 3/100 = 0.03

Probability of first year dropouts and sophomores = 6/100 = 0.06

Probability of dropout rate of juniors and seniors = 4/100 = 0.04

Therefore, the probability matrix can be made as :

              1        2        3        4       G        D

    \begin{matrix}1\\ 2\\ 3\\ 4\\ G\\ D\end{matrix}      \begin{bmatrix}0.03 & 0.91 & 0 & 0 & 0 & 0.06\\  0& 0.03 & 0.91 & 0 & 0 & 0.06\\  0& 0 & 0.03 & 0.93 & 0 & 0.04\\  0& 0 & 0 & 0.03 & 0.93 & 0.04\\  0& 0 & 0 & 0 & 1 & 0\\  0& 0 & 0 & 0 & 0 & 1\end{bmatrix}  

Here, G represents 'graduates' and D represents 'Dropouts.'

5 0
3 years ago
The 5 ft wide gate ABC is hinged at C and contacts a smooth surface at A. If the specific weight of the water is 62.4 lb/ft3 , f
pochemuha

Answer:

The solution is given in the attachments.

5 0
3 years ago
The Environmental Protection Agency (EPA) has standards and regulations that says that the lead level in soil cannot exceed the
DENIUS [597]

Answer:

See below

Explanation:

<u>Check One-Sample T-Interval Conditions</u>

Random Sample? √

Sample Size ≥30? √

Independent? √

Population Standard Deviation Unknown? √

<u>One-Sample T-Interval Information</u>

  • Formula --> CI=\bar{x}\pm t^*(\frac{S_x}{\sqrt{n}})
  • Sample Mean --> \bar{x}=390.25
  • Critical Value --> t^*=2.0096 (given df=n-1=50-1=49 degrees of freedom at a 95% confidence level)
  • Sample Size --> n=50
  • Sample Standard Deviation --> S_x=30.5

<u>Problem 1</u>

The critical t-value, as mentioned previously, would be t^*=2.0096, making the 95% confidence interval equal to CI=\bar{x}\pm t^*(\frac{S_x}{\sqrt{n}})=390.25\pm2.0096(\frac{30.5}{\sqrt{50}})\approx\{381.5819,398.9181\}

This interval suggests that we are 95% confident that the true mean levels of lead in soil are between 381.5819 and 398.9181 parts per million (ppm), which satisfies the EPA's regulated maximum of 400 ppm.

3 0
2 years ago
Other questions:
  • A heat pump with an ideal compressor operates between 0.2 MPa and 1 MPa. Refrigerant R134a flows through the system at a rate of
    15·1 answer
  • A brass alloy is known to have a yield strength of 240 MPa (35,000 psi), a tensile strength of 310 MPa (45,000 psi), and anelast
    11·1 answer
  • An electric motor supplies 200 N·m of torque to a load. What is the mechanical power supplied to the load if the shaft speed is
    15·2 answers
  • A plane wall, 7.5 cm thick, generates heat internally at the rate of 105W/m3. One side of the wall is insulated and the other si
    14·1 answer
  • Water is leaking out of an inverted conical tank at a rate of 11700.0 cubic centimeters per min at the same time that water is b
    11·1 answer
  • Assume there exists some hypothetical metal that exhibits ferromagnetic behavior and that has (1) a simple cubic crystal structu
    6·1 answer
  • A pressure transducer has the following specifications: Input rage: 0-100 psi and the corresponding Output Range: 0-5 Volts. Lin
    5·1 answer
  • WHICH OF THIS PLS FAST!!!
    5·1 answer
  • Where can I find solved problems of advanced soil structure interaction?​
    6·2 answers
  • 25 pts!!!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!