Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The input is a string to represent the month and an int to represent the day.

Answers

Answer 1

A program that takes a date as input and outputs the date's season in the northern hemisphere is; done using input as a string to represent the month and an int to represent the day.

How to Program in Python

The seasons in the northern hemisphere are Spring, Summer, Autumn and Winter.

Now, the dates for each of these seasons are;

Spring: March 20 - June 20

Summer: June 21 - September 21

Autumn: September 22 - December 20

Winter: December 21 - March 19

Using the given information of input as a string to represent the month and an int to represent the day and combining with the seasons above, we can write the program in python as;

input_month = input()

input_day = int(input())

months= ('January', 'February','March', 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , "October" , "November" , "December")

if not(input_month in months):

   print("Invalid")

elif input_month == 'March':

   if not(1<=input_day<=31):

       print ("Invalid")

   elif input_day<=19:

       print("Winter")

   else:

       print ("Spring")

elif input_month == 'April' :

   if not(1<=input_day<=30):

       print("Invalid")

   else:

       print("Spring")

elif input_month == 'May':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Spring")

elif input_month == 'June':

   if not(1<=input_day<=30):

       print("Invalid")

   elif input_day<=20:

       print ("Spring")

   else:

       print("Summer")

elif input_month == 'July' or input_month == 'August':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Summer")

elif input_month == 'September':

   if not(1<=input_day<=30):

       print("Invalid")

   elif input_day<=21:

       print ("Summer")

   else:

       print ("Autumn")

elif input_month == "October":

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Autumn")

elif input_month == "November":

   if not(1<=input_day<=30):

       print("Invalid")

   else:

       print ("Autumn")

elif input_month == "December":

   if not(1<=input_day<=31):

       print("Invalid")

   elif input_day <=20:

       print ("Autumn")

   else:

       print ("Winter")

elif input_month == 'January':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Winter")

elif input_month == "February":

   if not(1<=input_day<=29):

       print("Invalid")

   else:

       print ("Winter")

Read more about Python Programming at; https://brainly.com/question/16397886


Related Questions

Give an expression for the temperature of an ideal gas in terms of pressure p, particle density per unit volume rho, and fundamental constants.

Answers

The expression for the temperature is T = P/(ρ*R)

How to find the expression for the temperature?

The general expression for an ideal gas is:

PV = nRT

Where:

P is the pressureV is the volumen is the number of molesR is the constant of the ideal gasT is the temperature.

If we divide both sides by the volume we get:

P = (n/V)*R*T

And n/V is the particle density, then we get:

P = ρRT

Now we isolate T, the temperature, to get:

T = P/(ρ*R)

If you want to learn more about ideal gases, you can read:

https://brainly.com/question/25290815

Let n be an integer that can be represented by 2^ a 3^ b 5^ c If a, b and care integers such that 0<a<b<c and a + b + c = 7 what is a possible value for n?
A. 4500
B. 11250
C. 2700
D. 46875
E. 6750

Answers

Answer B
Only a=1, b=2, c=4 is satisfied

A student is comparing the different macromolecule types for a biology class. The student described the structure of the molecules but then must complete the table for the functions of these molecules. Which description accurately compares the functions of carbohydrates and proteins and can be used to complete the table?.

Answers

Carbohydrates are used to produce energy (glucose), while proteins determine the shape and structure of cells and transport other substances in the body, whether nutrients, hormones.

What are carbohydrates?

They are macromolecules that are formed mainly by carbon and hydrogen atoms, they contribute to the storage and obtaining of energy.

What are proteins?

It is a macromolecule composed of amino acids that appear chained that direct almost all the vital processes in the organism.

Functions of carbohydrates and proteins

Carbohydrates are highly energetic molecules.

Proteins are responsible for giving shape, elasticity and support to cells, accelerate certain metabolic processes and are responsible for carrying substances to and from the interior of cells.

Therefore, we can conclude that carbohydrates are used as a source of energy, while proteins are responsible for giving shape and support to cells and transport other substances in the body.

Learn more about Functions of carbohydrates and proteins here: https://brainly.com/question/24659147

The correct answer is Carbohydrates and proteins can both be used for energy by the cell.

What does the underlined word mean in the following sentence? hay doce huevos en una docena. 21 12 31 41.

Answers

B. 12

Explanation:

I believe its 12 so i hope this helps :)

Answer: B. 12

Explanation: On Edge!

A cfo is looking at what percentage of a company's resources are spent on computing. He samples companies in the pharmaceutical industry and develops the following stem-and-leaf display (leaf unit = 0. 1).

Answers

Answer:

i don't understand what is the question it self?

- displaying this data?

Explanation:

For real numbers $x,$ what is the largest possible value of \[ 5 - (x-3)^2 ?\].

Answers

The largest possible value of f(x) will be -∞.

Limit

For solving this question, you can calculate the limit of f(x) for x→∞.  Since the definition of limit is: the limit of  f(x), as x approaches b , equals L. See:  [tex]\lim _{x\to \ b \:}f(x))=L[/tex]

Therefore:

[tex]\lim _{x\to \infty \:}\left(5-\left(x-3\right)^2\right)\\ \\ \lim _{x\to \infty \:}\left(5\right)-\lim _{x\to \infty \:}\left(\left(x-3\right)^2\right)[/tex]

Applying the Constant Law -   The limit of a constant is the constant itself: [tex]\lim _{x\to \infty \:}\left(5\right)=5[/tex]

Applying the Difference Law -  The limit of a difference is the difference of the limits: [tex]\lim _{x\to \infty \:}\left(\left(x-3\right)^2\right)=\infty[/tex]

Thus,

[tex]\lim _{x\to \infty \:}\left(5-\left(x-3\right)^2\right)= \lim _{x\to \infty \:}\left(5\right)-\lim _{x\to \infty \:}\left(\left(x-3\right)^2\right)= 5- \infty=- \infty[/tex]

The largest possible value of f(x) will be -∞.

The result is consistent since it is possible to note that [tex](x-3)^2[/tex]positive number. Also, see that there is a difference between 5 and  [tex](x-3)^2[/tex]-∞.

Read more about the limit here:

https://brainly.com/question/8560950

In speciation, two species interbreed to form one new species.

Answers

Answer: This is called Hybrid speciation. So its true

hope this helps!

What is the name of the large emerald in the smithsonian? bueno grande el magnifico guatavita beauty gachala.

Answers

Answer:

The answer is D: Gachala

Explanation:

The name of the largest emerald in the Smithsonian Institute of Washington  is Gachala Emerald. Thus, option D. is correct.

What is emerald?

The emerald is a gemstone that is green in color. They are highly precious stones as they are variety of mineral beryl.

Gachala Emerald is the most precious and famous emerald of the world. It was discovered in 1967. It is declared as the largest gemstone by the institute of Washington, DC.

Learn more about Emerald gemstone, here:

https://brainly.com/question/3702662

#SPJ2

Please describe the influence of african-american musical artists, including their songs and stylistic elements, on the music of the beatles. How did this manifest in the band's early musical development? did the beatles ever tour or work with african-american musicians? you must write at least 150-200 words to cover the topic briefly but thoroughly.

Answers

The American  African music artist such as Louis Armstrong broke the barrier  and brought about development in music industry which enhance the growth of The Beatles.

The development brought by African music artist makes the Beatles to be a able to produce stars like McCartney, John Lennon and others.

Who are The Beatles?

The Beatles  can be regarded as the English rock band, that was seen as most influential band of all time which was formed in Liverpool in 1960.

Some of the artist in The Beatles are;

John Lennon Paul McCartneyGeorge HarrisonRingo Starr.

However, Hey Jude is been regarded as the biggest hit music of the Beatles' run.

Learn more about Beatles at;

https://brainly.com/question/25209694

This photograph of a wall in california is most representative of what art movement?.

Answers

The photograph of a wall in California is most representative of :

Chicano Mural movement

Chicano Mural movement

The Chicano Mural movement is an art movement whereby artists used the walls of buildings including schools, housing projects and city centers in various cities to depict mexican-American cultures in order to promote political and social equality for Mexican-Americans living in United states.

The Chicano Mural movement started in the 1960s throught out the southwest.

Hence we can conclude that the photograph of a wall in California is most representative of Chicano Mural movement.

Learn more about Chicano Mural Movement : https://brainly.com/question/1104023

If there are 180 members of the 8th grade class, then what percent preferred either the museum or the sports complex?.

Answers

47.5% is the answer i think so cuz if you take 19 + 7 you have 26 and 26% of 180 is really close to 47.5 yk

The solution of system of linear equation x + 2y = 5 and 3x + 5y = 14 is,.

Answers

Answer:

// Solve equation [1] for variable x

[1] x = -2y + 5

// Plug this in for variable x in equation [2]

[2] 3•(-2y+5) + 5y = 14 [2] - y = -1

// Solve equation [2] for variable y

[2] y = 1

// Now we know this:

x = -2y+5 y = 1

// Use the y value to resolve x

x = -2(1) +5 = 3

Workaround:

{x,y} = {3,1}

Which graph represents the function f (x) = startfraction 2 x minus 1 over x minus 1 endfraction?.

Answers

Answer:

i believe its C

Explanation:

Answer:

The correct answer is C.

Explanation:

~Hope this helps!

Assume linda has owned an ee bond for 3 years. The fixed rate of interest is 4% and the current value of the bond is $4500. If linda were to cash in the bond tomorrow, how much interest will she lose (approximately) as a penalty?.

Answers

Linda will lose $180 interest as a penalty if she cash in the bond tomorrow.

What is an EE Bond?

An EE savings bond is rfefereed to as low-risk savings bonds  that earn interest until one cashes out or double for a 30-year term. if one cashes out before the stipulated period of time, no interest will be awarded.

For Linda with

Face Value of the bond = $4500The fixed rate of interest is r = 4%

If Linda were to cash in the bond tomorrow, it means she will lose

Interest  = Face Value  x interest rate  = 4500 X 4%=$180

Learn more on Solving interest on ee bonds :https://brainly.com/question/15184485?r

In the excerpt from the article "those old piano blues," what is the primary purpose of paragraph 7?.

Answers

Answer: To explain why letting go of pianos is acceptable at times

Explanation: Paragraph 7 talks about how broken down pianos may not be such a bad thing. Evidence: "So the pruning of a century’s worth of neglected home pianos might not be such a bad thing, if we continue to cherish the music."

the staar benchmarks are really annoying :/

The explanation of  why letting go of pianos is acceptable.

Why does old blue piano signify ?

As per the seventh paragraph of the article, the old blue pianos refer to the pianos that may not have been played or used and thus pruning the neglected home pianos may not be such a bad thing, if we continue to cherish music.

The author supports the idea that it may be thus acceptable to leave or get rid of the old piano.

Find out more infirmation about the article.

brainly.com/question/24919895.

If you travel 300km in 6 hours, what is your average speed?.

Answers

Answer:

50 km. explanation : you divide 6 by 300 you get 50 that's the answer

Light from the sun allows a solar cell to move electrons from the positive to the negative terminal, doing 2. 4×10−19j of work per electron.

Answers

The emf of the solar cell moving the electrons from the positive to the negative terminal is 1.5 V

What is electromotive force (EMF)?

The electromotive force (EMF) is defined as the energy supplied by a battery per unit charge. Mathematically, it can be expressed as:

Electromotive force (EMF) = Work (W) / charge (Q)

EMF = W / Q

How to determine the EMF work (W) = 2.4×10¯¹⁹ JCharge on electron = 1.6×10¯¹⁹ CElectromotive force (EMF) =?

EMF = W / Q

EMF = 2.4×10¯¹⁹ / 1.6×10¯¹⁹

EMF = 1.5 V

Complete question

Light from the sun allows a solar cell to move electrons from the positive to the negative terminal, doing 2.4×10−19 J of work per electron. What is the emf of this solar cell?

Learn more about electromotive force (EMF):

https://brainly.com/question/820393

Which option is an example of biodiversity being impacted on the species level?(1 point).

Answers

The example of biodiversity being impacted on the species level is the organisms having a variety of traits present.

What is Biodiversity?

This is a measure of the variation of the genetics in organisms which often gives rise to the exhibition of different traits.

An example is a deer in an ecosystem in which the tail could be of different colors such as white, black etc which represents biodiversity.

Read more about Biodiversity here https://brainly.com/question/26110061

what time is it in the USA if it is 2:00am in the UK

Answers

Answer:

it would be 9:00 PM in the us and 2:00 in the uk

A car of mass 700 kg and moving at a speed of 30 m/s.

Answers

Answer:

10 m/s

Explanation:

Your take home pay is $1500 after you have 22% withheld in taxes. What is your gross pay before the taxes were withheld? round your answer to the nearest penny.

Answers

Using the values given for the take home and tax as 227% , we assumed a gross pay of x value and found the gross pay to be $1923.076

Calculation of Tax

Given Data

Take home pay = $1500

Tax = 22% of gross

Let the gross pay be x

Hence, let us find 22% of x

= 22/100*x

=0.22x

Amount of pay = 0.22x

We know that the Take home pay is  = Gross - Tax

 

Substituting our data we have

1500 = x-0.22x

1500 = 0.78x

Divide both sides by 0.78

x = 1500/0.78

x = $1923.076

Learn more about Taxes here:

https://brainly.com/question/25783927

Helium is most likely to behave as an ideal gas when it is under.

Answers

Answer:

High Pressure and low temperatures

Explanation:

You're Welcome

Explain how the use of agricultural chemicals contributed to the change in rice production.

Answers

Answer:

changes to natural systems by landscape modification

Which revisions would make the diagram of the fire pit more effective? select three options. Adding another step describing all uses of fire pits adding images of different styles of fire pits including images for each step of the process adding a label to indicate the depth of the fire pit including labels for all materials mentioned.

Answers

Answer:A,B,d

Explanation:

cuz it is the right one

The following revisions would make the diagram of the fire pit more effective:

Adding images of different styles of fire pits including images for each step of the process.Including labels for all materials mentioned.Adding a label to indicate the depth of the fire pit.

So, the correct options are B, C and D .

What is Fire pit?

A fire pit is a special space or building designed to hold and manage an outdoor fire. It can be constructed from a variety of materials, including stone, brick, metal, or concrete, and can be produced in a variety of shapes and sizes. Fire pits provide light and heat and are often used for outdoor cooking and entertaining.

Fire pit schematics can be improved with the changes listed below:

Includes several fire pit designs and illustrations of each process step in addition to images.Adding labels to all specified substances.Including a plaque to say the depth of the fire pit.

So, the correct options are B, C and D .

Learn more about Fire pits, here:

https://brainly.com/question/9722744

#SPJ7

Your question is incomplete, most probably the complete question is:

Which revisions would make the diagram of the fire pit more effective? select three options.

Adding another step describing all uses of fire pits adding images of different styles of fire pits including images for each step of the process adding a label to indicate the depth of the fire pit including labels for all materials mentioned.

An acid is a polar substance that dissolves in water and.

Answers

An acid is a polar substance that dissolves in water and gives hydrogen ions

[tex] {h}^{ + } [/tex]

An acid is a polar substance that dissolves in water and produces hydrogen ions.

What are acids?

An acid is a chemical that, when added to water, releases hydrogen (H+) ions. A hydrogen ion is made up solely of a proton. When examining the chemical formulas of various acids, we can see that they all include at least one hydrogen (H).

Any acid that entirely ionizes in solutions is considered a strong acid. This indicates that when dissolved in a solution, it emits the most hydrogen ions or protons.

For instance: Hydrochloric acid or HCl Acids are examples of organic chemicals that belong to the carboxylic acid, sulfonic acid, and phenol groups as well as the inorganic substances known as the mineral acids, such as sulfuric, nitric, hydrochloric, and phosphoric acids.

Therefore, a polar chemical that dissolves in water to form hydrogen ions is an acid.

To learn more about acids, refer to the link:

https://brainly.com/question/1512259

#SPJ5

Iguazu falls is located in argentina brazil and brainly.

Answers

Answer:

Paraguay

Explanation:

Just took the test :)

There are ________ atoms of hydrogen in 300 molecules of ch3co2h.

Answers

Answer:

600 atoms

Explanation:

Molecules are formed when two atoms of the SAME or DIFFERENT combine together.

Atoms are the smallest unit of matter that combines to form a compound.

ch3co2h

Given number of molecules = 300 molecules

In 1 mole of the given chemical compound, there are 2 atoms of carbon, 4 atoms of hydrogen and 2 atoms of oxygen

Number of atoms of oxygen = 2× Number of molecules of compound.

i.e

Number of atoms of oxygen = 2× 300

600 is the answer.

An 800 kg cart is coasting at a constant velocity of 15 m/s. As the car coasts, a 200 kg block is dropped into it. What would be the velocity of the cart now?.

Answers

Using conservation of momentum, we will see that the new velocity is 12 m/s.

How to use conservation of momentum?

We know that the momentum un a closed system must be conserved, in this case, our system is the cart and the block.

Initially, the cart moves with a velocity of 15 m/s, and has a mass of 800 kg, then the initial momentum is:

P = 15m/s*800kg = 12,000 kg*m/s

Then a block of 200kg is dropped on the cart, so the new mass of the cart is 1,000 kg, then the new momentum is:

P = 1,000kg*V'

Where V' is the new velocity, and by conservation of momentum, we must have that:

12,000 kg*m/s = 1,000kg*V'

( 12,000 kg*m/s)/1,000kg = V' = 12 m/s.

The new velocity of the cart is 12 m/s.

If you want to learn more about momentum, you can read:

https://brainly.com/question/7973509

In the management assistance area, the small business administration (sba) provides all of the following except:.

Answers

What the small business administration (sba) do not provides is

business incubators.

What is Small Business Administration?

The U.S. Small Business Administration  can be regarded as the United States government agency which do offer support to entrepreneurs as well as small businesses.

Their function include;

loan guaranteesadvice from retired executivesaccess to venture capitalists

Learn more about Small Business Administration at;

https://brainly.com/question/7053473

This excerpt uses two words to describe intentionality. What are those two words and what do they mean?.

Answers

Answer: choice and mental state

Explanation:

The two words that were used in the excerpt to describe intentionality are: Choice and Mental State.

What is Intentionality?

Intentionality is the ability to have a say in a matter. Choice refers to the ability of an individual to determine his desire for something.

The mental state of a person also gives him the ability to be intentional about his choices.

So, the words, choice, and mental state describe intentionality.

Learn more about intentionality here:

https://brainly.com/question/2360346

Other Questions
Name the figure that Enrico drew below. (Lesson 10.1) My fellow countrymen i suppose that every thoughtful man in find sin(x) if cos(x) = -22/29 The Secretary of State is the presidents chief advisor on_______________________________. Thomas __________________ andColin __________________ are among Americas former Secretaries ofState. List the sides in order for biggest to smallest: Water ConsumptionAll living organisms on Earth need water to survive. Many, including humans, require fresh water, but only 3% of the water on the Earth's surface is fresh water. How is fresh water important to you? How does this affect the way you manage your use of fresh water?Write an essay that explains how you use and conserve fresh water based on how important it is to you. Support your explanation using evidence, such as facts and examples.As you write, remember your essay will be scored based on how well you:develop a multi-paragraph response to the assigned topic that clearly communicates your controlling idea to the audience.support your controlling idea with meaningful examples, information, and references from the text.cite direct quotes and any information that has been paraphrased from the passages that you have read.organize your essay in a clear and logical manner, including an introduction, body, and conclusion.use well-structured sentences and language that are appropriate for your audience.edit your work to conform to the conventions of standard American English.(100points) (a beggining, middle and end) write a linear equation that passes through the points(2,-2) and (0,1) PLEASE HELP Approximate grams per spoonful:g Pls help me pls pls pls pls pls CAN someone plz help me plz!! :( why a bulb contains coiled wire? Identify the coefficient in the expression: 6 -3x +2 PLEASEPLEASEPLEASEPLEASE hi can someone pls help me answer this question i srsly need it pls help me if u can, thank u name one of your favorite rappers Brainliest if correct explain the statement "a farm is a system" it usually sung in high, tight, throated, and melismatic manner A. Timbre B. Pitch C. Tempo D. Texture i have a question so im working on a hydrology crossword puzzle and it says how acidic or basic a substance is and it only has 9 letters and its starts with p and the 3rd letter is b i need help luise gets $4 a week for raking the leaves. they want to buy a $10 toy. how many more weeks do they need to rake