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
What’s is the proper fastener to use to join two wires.
xxMikexx [17]
The answer would be C !
7 0
3 years ago
An aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 40MPa. It has been dete
Nataly [62]

Answer:

Yes, fracture will occur

Explanation:

Half length of internal crack will be 4mm/2=2mm=0.002m

To find the dimensionless parameter, we use critical stress crack propagation equation

\sigma_c=\frac {K}{Y \sqrt {a\pi}} and making Y the subject

Y=\frac {K}{\sigma_c \sqrt {a\pi}}

Where Y is the dimensionless parameter, a is half length of crack, K is plane strain fracture toughness, \sigma_c  is critical stress required for initiating crack propagation. Substituting the figures given in question we obtain

Y=\frac {K}{\sigma_c \sqrt {a\pi}}= \frac {40}{300\sqrt {(0.002*\pi)}}=1.682

When the maximum internal crack length is 6mm, half the length of internal crack is 6mm/2=3mm=0.003m

\sigma_c=\frac {K}{Y \sqrt {a\pi}}  and making K the subject

K=\sigma_c Y \sqrt {a\pi}  and substituting 260 MPa for \sigma_c  while a is taken as 0.003m and Y is already known

K=260*1.682*\sqrt {0.003*\pi}=42.455 Mpa

Therefore, fracture toughness at critical stress when maximum internal crack is 6mm is 42.455 Mpa and since it’s greater than 40 Mpa, fracture occurs to the material

6 0
3 years ago
"A communication between two devices is over the maximum limit of an ethernet frame size. The Transmission Control Protocol (TCP
Sliva [168]

COmmunication Devices

Explanation:

  • TCP/IP, or the Transmission Control Protocol/Internet Protocol, is a suite of communication protocols used to interconnect network devices on the internet. TCP/IP can also be used as a communications protocol in a private network (an intranet or an extranet).

  • The sequence number in a header is used to keep track of which segment out of many this particular segment might be. The next field, the acknowledgment number, is a lot like the sequence number. The acknowledgment number is the number of the next expected segment.

  • The 32 bit sequence number field defines the number assigned to the first byte of data contained in this segment. TCP is a stream transport protocol. To ensure connectivity, each byte to be transmitted is numbered.
3 0
3 years ago
Question
Leto [7]

Answer:

True

Explanation:

The CNC is the primary interface between the machine operator and the machine.

4 0
2 years ago
Railroad tracks made of 1025 steel are to be laid during the time of year when the temperature averages 4C (40F). Of a joint spa
DENIUS [597]

Answer:

41.5° C

Explanation:

Given data :

1025 steel

Temperature = 4°C

allowed joint space = 5.4 mm

length of rails = 11.9 m

<u>Determine the highest possible temperature </u>

coefficient of thermal expansion ( ∝ ) = 12.1 * 10^-6 /°C

Applying thermal strain ( Δl / l )  = ∝ * ΔT

                                    ( 5.4 * 10^-3 / 11.9 )  = 12.1 * 10^-6 * ( T2 - 4 )

∴  ( T2 - 4 ) =  ( 5.4 * 10^-3 / 11.9 ) / 12.1 * 10^-6

hence : T2 = 41.5°C

8 0
3 years ago
Other questions:
  • A square aluminum plate 5 mm thick and 200 mm on a side is heated while vertically suspended in quiescent air at 40C. (A) Determ
    8·1 answer
  • A silicon carbide plate fractured in bending when a blunt load was applied to the plate center. The distance between the fractur
    11·1 answer
  • Consider the circuit below where R1 = R4 = 5 Ohms, R2 = R3 = 10 Ohms, Vs1 = 9V, and Vs2 = 6V. Use superposition to solve for the
    15·1 answer
  • Example – a 100 kW, 60 Hz, 1175 rpm motor is coupled to a flywheel through a gearbox • the kinetic energy of the revolving compo
    12·1 answer
  • Two parts are to be assembled in a way that if one part fails, the entire assembly fails. Each of the parts have undergone exten
    15·1 answer
  • If you get a flat in the front of your car, your car will:
    11·1 answer
  • Stakeholders are people or organizations who do what?
    10·2 answers
  • Contrast the electron and hole drift velocities through a 10 um (micro meter) layer of intrinsic silicon across which a voltage
    11·1 answer
  • Find the total present worth of a series of cash flows with an annual interest rate of 2% per year. Round your answer to the nea
    5·1 answer
  • Explain why the following scenario fails to meet the criteria for proper reverse engineering.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!