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
stepladder [879]
2 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]2 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
The in situ moist unit weight of a soil is 17.3 kN/m^3 and the moisture content is 16%. The specific gravity of soil solids is 2
hammer [34]

Answer:

Explanation:

The solution to given problem is attached below

7 0
2 years ago
An ideal Diesel cycle has a compression ratio of 18 and a cutoff ratio of 1.5. Determine the maximum air temperature and the rat
defon

Answer:

A) Rate of heat addition = 228.53 Hp

B) Maximum Air temperature = 1109 °C

Explanation:

We are given;

Cut off ratio; r_c = 1.5

Compression ratio; r = 18

Power produced; W` = 150 Hp

cp = 1.005 kJ/kg·K

cv = 0.718 kJ/kg·K

R = 0.287 kJ/kg·K

k = 1.4

Temperature;T1 = 17°C = 17 + 273 K = 290K

I've attached the rest of the explanation below.

8 0
2 years ago
A steam power plant operates on an ideal reheat- regenerative Rankine cycle and has a net power output of 80 MW. Steam enters th
trasher [3.6K]

Answer:

flow(m) = 54.45 kg/s

thermal efficiency u = 44.48%

Explanation:

Given:

- P_1 = P_8 = 10 KPa

- P_2 = P_3 = P_6 = P_7 = 800 KPa

- P_4 = P_5 = 10,000 KPa

- T_5 = 550 C

- T_7 = 500 C

- Power Output P = 80 MW

Find:

-  The mass flow rate of steam through the boiler

-  The thermal efficiency of the cycle.

Solution:

State 1:

P_1 = 10 KPa , saturated liquid

h_1 = 192 KJ/kg

v_1 = 0.00101 m^3 / kg

State 2:

P_2 = 800 KPa , constant volume process work done:

h_2 = h_1 + v_1 * ( P_2 - P_1)

h_2 = 192 + 0.00101*(790) = 192.80 KJ/kg

State 3:

P_3 = 800 KPa , saturated liquid

h_3 = 721 KJ/kg

v_3 = 0.00111 m^3 / kg

State 4:

P_4 = 10,000 KPa , constant volume process work done:

h_4 = h_3 + v_3 * ( P_4 - P_3)

h_4 = 721 + 0.00111*(9200) = 731.21 KJ/kg

State 5:

P_5 = 10,000 KPa , T_5 = 550 C

h_5 = 3500 KJ/kg

s_5 = 6.760 KJ/kgK

State 6:

P_6 = 800 KPa , s_5 = s_6 = 6.760 KJ/kgK

h_6 = 2810 KJ/kg

State 7:

P_7 = 800 KPa , T_7 = 500 C

h_7 = 3480 KJ/kg

s_7 = 7.870 KJ/kgK

State 8:

P_8 = 10 KPa , s_8 = s_7 = 7.870 KJ/kgK

h_8 = 2490 KJ/kg

- Fraction of steam y = flow(m_6 / m_3).

- Use energy balance of steam bleed and cold feed-water:

                                        E_6 + E_2 = E_3

               flow(m_6)*h_6 + flow(m_2)*h_3 = flow(m_3)*h_3

                                    y*h_6 + (1-y)*h_3 = h_3

                                  y*2810 + (1-y)*192.8 = 721

Compute y:                          y = 0.2018

- Heat produced by the boiler q_b:

                             q_b = h_5 - h_4 +(1-y)*(h_7 - h_8)

                    q_b = 3500 -731.21 + ( 1 - 0.2018)*(3480 - 2810)

Compute q_b:               q_b = 3303.58 KJ/ kg

-Heat dissipated by the condenser q_c:

                                       q_c = (1-y)*(h_8 - h_1)

                                 q_c= ( 1 + 0.2018)*(2810 - 192)

Compute q_c:               q_c = 1834.26 KJ/ kg

- Net power output w_net:

                                     w_net = q_b - q_c

                                w_net = 3303.58 - 1834.26

                                    w_net = 1469.32 KJ/kg

- Given out put P = 80,000 KW

                                     flow(m) = P / w_net

compute flow(m)          flow(m) = 80,000 /1469.32 = 54.45 kg/s

- Thermal efficiency u:

                                     u = 1 - (q_c / q_b)

                                     u = 1 - (1834.26/3303.58)

                                     u = 44.48 %

5 0
2 years ago
Which one of the following activities is not an example of incident coordination
Lady bird [3.3K]
Directing, ordering, or controlling
7 0
2 years ago
Steam enters a turbine operating at steady state at 1 MPa, 200 °C and exits at 40 °C with a quality of 83%. Stray heat transfer
Andrei [34K]

Answer:

(a) Work out put=692.83\frac{KJ}{Kg}

(b) Change in specific entropy=0.0044\frac{KJ}{Kg-K}

Explanation:

Properties of steam at 1 MPa and 200°C

        h_1=2827.4\frac{KJ}{Kg},s_1=6.69\frac{KJ}{Kg-K}

We know that if we know only one property in side the dome then we will find the other property by using steam property table.

Given that dryness or quality of steam at the exit of turbine is 0.83 and temperature T=40°C.So from steam table we can find pressure corresponding to saturation temperature 40°C.

Properties of saturated steam at 40°C

      h_f= 167.5\frac{KJ}{Kg} ,h_g= 2537.4\frac{KJ}{Kg}

 s_f= 0.57\frac{KJ}{Kg-K} ,s_g= 8.25\frac{KJ}{Kg-K}

So the enthalpy of steam at the exit of turbine  

h_2=h_f+x(h_g-h_f)\frac{KJ}{Kg}

h_2=167.5+0.83(2537.4-167.5)\frac{KJ}{Kg}

h_2=2134.57\frac{KJ}{Kg}

s_2=s_f+x(s_g-s_f)\frac{KJ}{Kg-K}

s_2=0.57+0.83(8.25-0.57)\frac{KJ}{Kg-K}

s_2=6.6944\frac{KJ}{Kg-K}

(a)

Work out put =h_1-h_2

                      =2827.4-2134.57 \frac{KJ}{Kg}

Work out put =692.83 \frac{KJ}{Kg}

(b) Change in specific entropy

     s_2-s_1=6.6944-6.69\frac{KJ}{Kg-K}

Change in specific entropy =0.0044\frac{KJ}{Kg-K}

3 0
2 years ago
Other questions:
  • A charge of 2.0 × 10–10 C is to be stored on each plate of a parallel-plate capacitor having an area of 650 mm2 (1.0 in.2 ) and
    14·1 answer
  • The basic barometer can be used to measure the height of a building. If the barometric readings at the top and the bottom of a b
    15·1 answer
  • A logic chip used in a computer dissipates 3 W of power in an environment at 120°F, and has a heat transfer surface area of 0.08
    11·1 answer
  • 10. Aluminum-lithium (Al-Li) alloys have been developed by the aircraft industry to reduce the weight and improve the performanc
    7·1 answer
  • Two physical properties that have a major influence on the cracking of workpieces, tools, or dies during thermal cycling are the
    13·1 answer
  • Two resistors of values 7.0 and 15.0 Ω are connected in parallel. This combination in turn is hooked in series with a 3.8- Ω res
    7·1 answer
  • A piece of corroded metal alloy plate was found in a submerged ocean vessel. It was estimated that the original area of the plat
    6·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
  • Can crushers help us recycle in a space efficient way which is good for saving the earth and for giving you more room in your ap
    7·1 answer
  • What are practical considerations you might encounter when you increase the moment of inertia (I) while keeping the cross-sectio
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!