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
stepladder [879]
3 years ago
7

python Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month an

d an int to represent the day.
Engineering
1 answer:
kupik [55]3 years ago
4 0

Answer:

month = input("Input the month (e.g. January, February etc.): ")

day = int(input("Input the day: "))

if month in ('January', 'February', 'March'):

season = 'winter'

elif month in ('April', 'May', 'June'):

season = 'spring'

elif month in ('July', 'August', 'September'):

season = 'summer'

else:

season = 'autumn'

if (month == 'March') and (day > 19):

season = 'spring'

elif (month == 'June') and (day > 20):

season = 'summer'

elif (month == 'September') and (day > 21):

season = 'autumn'

elif (month == 'December') and (day > 20):

season = 'winter'

print("Season is",season)

Explanation:

You might be interested in
A pressure gage at the inlet to a gas compressor indicates that the gage pressure is 40.0 kPa. Atmospheric pressure is 1.01 bar.
bonufazy [111]

Answer:

Given

inlet Pga =40kpa = 40000pa

Patm=1.01bar = 1.01 x 100000pa =101000pa

exit Pab= 6.5 (inlet Pab)

But generally, Pab = Patm + Pga

1. the absolute pressure of the gas at the inlet, inlet Pab?

inlet Pab = Patm + inlet Pga

            = 101000pa + 40000pa = 141kpa

the absolute pressure of the gas at the inlet, inlet Pab = 141kpa

2. the gage pressure of the gas at the exit? exit Pga?

exit Pab = Patm + exit Pga

exit Pga = exit Pab - Patm

             = (6.5 x 141kpa) - 101kpa

              = 815.5kpa

the gage pressure of the gas at the exit exit Pga=815.5kpa

5 0
3 years ago
can someone help me with this engineering mechanics homework, please? I tried to solve it, but I got so confused.​
marishachu [46]

Explanation:

Sum of forces in the x direction:

∑Fx = ma

Rx − 250 N = 0

Rx = 250 N

Sum of forces in the y direction:

∑Fy = ma

Ry − 120 N − 300 N = 0

Ry = 420 N

Sum of forces in the z direction:

∑Fz = ma

Rz − 50 N = 0

Rz = 50 N

Sum of moments about the x axis:

∑τx = Iα

Mx + (-50 N)(0.2 m) + (-120 N)(0.1 m) = 0

Mx = 22 Nm

Sum of moments about the y axis:

∑τy = Iα

My = 0 Nm

Sum of moments about the z axis:

∑τz = Iα

Mz + (250 N)(0.2 m) + (-120 N)(0.16 m) = 0

Mz = -30.8 Nm

6 0
3 years ago
A bridge hand consists of 13 cards. One way to evaluate a hand is to calculate the total high point count (HPC) where an ace is
son4ous [18]

Answer: Let us use the pickled file - DeckOfCardsList.dat.

Explanation: So that our possible outcome becomes

7♥, A♦, Q♠, 4♣, 8♠, 8♥, K♠, 2♦, 10♦, 9♦, K♥, Q♦, Q♣

HPC (High Point Count) = 16  

4 0
3 years ago
Design a VHDL module
Aloiza [94]

Answer:

how we gonna do dat

Explanation:

5 0
2 years ago
Two dogbone specimens of identical geometry but made of two different materials: steel and aluminum are tested under tension at
makkiz [27]

Answer:

\dot L_{steel} = 3.448\times 10^{-4}\,\frac{in}{min}

Explanation:

The Young's module is:

E = \frac{\sigma}{\frac{\Delta L}{L_{o}} }

E = \frac{\sigma\cdot L_{o}}{\dot L \cdot \Delta t}

Let assume that both specimens have the same geometry and load rate. Then:

E_{aluminium} \cdot \dot L_{aluminium} = E_{steel} \cdot \dot L_{steel}

The displacement rate for steel is:

\dot L_{steel} = \frac{E_{aluminium}}{E_{steel}}\cdot \dot L_{aluminium}

\dot L_{steel} = \left(\frac{10000\,ksi}{29000\,ksi}\right)\cdot (0.001\,\frac{in}{min} )

\dot L_{steel} = 3.448\times 10^{-4}\,\frac{in}{min}

7 0
3 years ago
Read 2 more answers
Other questions:
  • 3–102 One of the common procedures in fitness programs is to determine the fat-to-muscle ratio of the body. This is based on the
    5·1 answer
  • 4. At what temperature does an engine run cleanest with least wear?
    11·1 answer
  • La Patrulla Fronteriza de los Estados Unidos analiza la compra de un helicóptero nuevo para la vigilancia aérea de la frontera d
    14·1 answer
  • Please help is due tonight
    6·2 answers
  • . An ideal vapor compression refrigeration cycle operates with a condenser pressure of 900 kPa. The temperature at the inlet to
    14·1 answer
  • The gage pressure measured as 2.2 atm, the absolute pressure of gas is 3.2 bar. Please determine the local atmospheric pressure
    14·1 answer
  • The two major forces opposing the motion of a vehicle moving on a level road are the rolling resistance of the tires, Fr, and th
    7·1 answer
  • You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
    9·1 answer
  • Travel Planning or Destination Planning will help make your travel more efficient, and not necessary a risk reduction plan as yo
    10·2 answers
  • A school bus with its flashing red signals on has stopped on a non-divided highway; you must?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!