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
PtichkaEL [24]
4 years ago
14

python Write a program that prompts the user to enter the month and year and displays the number of days in the month. For examp

le, if the user entered month 2 and year 2000, the program should display that February 2000 has 29 days. If the user entered month 3 and year 2005, the program should display that March 2005 has 31 days.
Engineering
1 answer:
sp2606 [1]4 years ago
3 0

Answer:

program

Explanation:

Program that prompts the user to enter the month and year and displays the number of days in the month:

1. print("List of months: January, February, March, April, May, June, July, August, September, October, November, December")

2. month_name = input("Input the name of Month: ")

if month_name == "February":

print("No. of days: 28/29 days")

elif month_name in ("January", "March", "May", "July", "August", "October", "December"):

print("No. of days: 31 day")

elif month_name in ("April", "June", "September", "November"):

print("No. of days: 30 days")

else:

print("Wrong month name")

You might be interested in
What is the maximum thermal efficiency possible for a power cycle operating between 600P'c and 110°C? a). 47% b). 56% c). 63% d)
Anastasy [175]

Answer:

(b) 56%

Explanation:

the maximum thermal efficiency is possible only when power cycle is reversible in nature and when power cycle is reversible in nature the thermal efficiency depends on the temperature

here we have given T₁ (Higher temperature)= 600+273=873

lower temperature T₂=110+273=383

Efficiency of power cycle is given by =1-\frac{T2}{T1}

=1-\frac{383}{873}

=1-0.43871

=.56

=56%

5 0
3 years ago
An aluminum metal rod is heated to 300oC and, upon equilibration at this temperature, it features a diameter of 25 mm. If a tens
Natalka [10]

Answer:

It will results in mechanical hardening.

5 0
4 years ago
Read 2 more answers
Suppose there are n chairs in a row. We want to compute the number of ways to put 2 students into seats so that they are not nex
icang [17]

Complete Question

The complete question is shown on the first uploaded image

Answer:

a) f_{(n)} = f_{(n-1)} + n-2

b) g_{(n)} = g_(n+1) + (n-2)

Explanation:

The explanation is shown on the second and third uploaded image

8 0
3 years ago
A 1000 W iron utilizes a resistance wire which is 20 inches long and has a diameter of 0.08 inches. Determine the rate of heat g
SSSSS [86.1K]

Answer:

The rate of heat generation in the wire per unit volume is 5.79×10^7 Btu/hrft^3

Heat flux is 9.67×10^7 Btu/hrft^2

Explanation:

Rate of heat generation = 1000 W = 1000/0.29307 = 3412.15 Btu/hr

Area (A) = πD^2/4

Diameter (D) = 0.08 inches = 0.08 in × 3.2808 ft/39.37 in = 0.0067 ft

A = 3.142×0.0067^2/4 = 3.53×10^-5 ft^2

Volume (V) = A × Length

L = 20 inches = 20 in × 3.2808 ft/39.37 in = 1.67 ft

V = 3.53×10^-5 × 1.67 = 5.8951×10^-5 ft^3

Rate of heat generation in the wire per unit volume = 3412.15 Btu/hr ÷ 5.8951×10^-5 ft^3 = 5.79×10^7 Btu/hrft^3

Heat flux = 3412.15 Btu/hr ÷ 3.53×10^-5 ft^2 = 9.67×10^7 Btu/hrft^2

3 0
3 years ago
Hello I need some help with this please. Pick a problem in your school or community that you think could be solved with technolo
bezimeni [28]

Answer:

An AI operated automatic garbage collection system

Explanation:

There is always an issue in my neighbourhood with the garbagemen coming on time so having an automatic system will help in the overall efficiency in the task

7 0
3 years ago
Read 2 more answers
Other questions:
  • A fluid has a dynamic viscosity of 0.048 Pa.s and a specific gravity of 0.913. For the flow of such a fluid over a flat solid su
    10·1 answer
  • A water tower that is 90 ft high provides water to a residential subdivision. The water main from the tower to the subdivision i
    10·1 answer
  • ________ is the most theoretical computing discipline, focusing mostly on finding new and better ways for computers to work
    9·1 answer
  • On a given day, a barometer at the base of the Washington Monument reads 29.97 in. of mercury. What would the barometer reading
    6·1 answer
  • A 4-pole, 3-phase induction motor operates from a supply whose frequency is 60 Hz. calculate: 1- the speed at which the magnetic
    10·1 answer
  • Q#3:(A)Supose we extend the circular flow mode to add imports and export copy the circular flow digram onto a sheet paper and th
    15·1 answer
  • Identify the different engineering activities/steps in the engineering design process for each steps,summarize in 1–3 sentences
    13·1 answer
  • What does Enter key do?
    10·1 answer
  • How do you explain the application of regulations in locations containing baths, showers and electric floor heating, including t
    10·1 answer
  • Technician A says test lights are great for performing simple tests. Technician B says you can use a test light to check SRS cir
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!