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 submarine submerges by admitting seawater (S = 1.03) into its ballast tanks. The amount of water admitted is controlled by air
ser-zykov [4K]

Answer:

Explanation:

Fw= y looking symbol sea water (2010.62-168171.2727/h+32.935)ft^3

6 0
3 years ago
The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
Zolol [24]

Answer:

471 days

Explanation:

Capacity of Carvins Cove water reservoir = 3.2 billion gallons i.e. 3.2 x 10˄9 gallons

As,  

1 gallon = 0.133 cubic feet (cf)

Therefore,  

Capacity of Carvins Cove water reservoir in cf  = 3.2 x 10˄9 x 0.133

                                                                         = 4.28 x 10˄8

 

Applying Mass balance i.e

Accumulation = Mass In - Mass out   (Eq. 01)

Here  

Mass In = 0.5 cfs

Mass out = 11 cfs

Putting values in (Eq. 01)

Accumulation  = 0.5 - 11

                         = - 10.5 cfs

 

Negative accumulation shows that reservoir is depleting i.e. at a rate of 10.5 cubic feet per second.

Converting depletion of reservoir in cubic feet per hour = 10.5 x 3600

                                                                                       = 37,800

 

Converting depletion of reservoir in cubic feet per day = 37, 800 x 24

                                                                                         = 907,200  

 

i.e. 907,200 cubic feet volume is being depleted in days = 1 day

1 cubic feet volume is being depleted in days = 1/907,200 day

4.28 x 10˄8 cubic feet volume will deplete in days  = (4.28 x 10˄8) x                    1/907,200

                                                                                 = 471 Days.

 

Hence in case of continuous drought reservoir will last for 471 days before dry-up.

8 0
3 years ago
Gas chromatography separates compounds depending on their__________ . Benzene, m-xylene, and toluene have similar_________ , the
amm1812

Answer and Explanation:

Gas chromatography separates compounds depending on their **polarity and volatility**. Benzene, m-xylene, and toluene have similar **polarities**, therefore, the main basis for separation is **volatility**. The more volatile a component the ** higher its vapor pressure**, hence the more time it spends in the **gaseous mobile phase**, giving it a **shorter** retention time. Therefore, components of a liquid mixture will elute in order of **increasing boiling points/decreasing volatilities/increasing polarities with the stationary phase**.

3 0
3 years ago
If you are driving a 30-foot
Ratling [72]

Answer:

3 sec

If you are driving a 30-foot vehicle at 55 mph, how many seconds of following distance should you allow? 30ft truck. = 3 sec. Since the truck is over 40 mph.

Explanation:

5 0
3 years ago
I = 48 mA, R = 1125 2. What is Vs ?
german
54 volts

Ohms law. E= I x R
6 0
4 years ago
Other questions:
  • Line.
    9·1 answer
  • The enthalpy of the water entering an actual pump is 500 kJ/kg and the enthalpy of the water leaving it is 550 kJ/kg. The pump h
    10·1 answer
  • Consider a vortex filament of strength in the shape of a closed circular loop of radius R. Obtain an expression for the velocity
    10·1 answer
  • An electric power plant uses solid waste for fuel in the production of electricity. The cost Y in dollars per hour to produce el
    10·1 answer
  • In casting experiments performed using a certain alloy and type of sand mold, it took 155 sec for a cube-shaped casting to solid
    9·1 answer
  • W<br>n só<br>i<br>Eo<br>E<br>find the transfer function​
    9·1 answer
  • Is a compass a analog or a digital sensor?
    14·1 answer
  • What parts do all circuits have in common?
    9·2 answers
  • Given the inherent costs of regulation it is safe to say that there is always a negative economic impact associated with regulat
    7·1 answer
  • Draw the schematics for the following two battery connections. Can you explain the value of the output voltage in the series con
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!