in python IDLE Your program will read the user’s name. Take any name they enter. It may be just a first name or a first and last name – it does not matter what they enter, you will take it all as their name. Next your program will read the month the user was born. The month will be entered as an integer: 1 = January, 2 = February, etc. Make sure your prompt contains enough information so the user knows what to enter. For this program you will use the following to decide which season to display:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

in python IDLE Your program will read the user’s name. Take any name they enter. It may be just a first name or a first and last name – it does not matter what they enter, you will take it all as their name.

Next your program will read the month the user was born. The month will be entered as an integer: 1 = January, 2 = February, etc. Make sure your prompt contains enough information so the user knows what to enter.

For this program you will use the following to decide which season to display:

  • 12, 1, 2 = winter
  • 3, 4, 5 = spring
  • 6, 7, 8 = summer
  • 9, 10, 11 = fall

You will also ask the user what year they were born and decide if this is a leap year or not.
To determine if a year is a leap year, use the following:

A year which is evenly divisible by 4 is a leap year except for century years (years ending with 00) which is a leap year only if it is evenly divisible by 400.

Your program must work for all years but you can test your code using the following years:

  • 2012, 2004, 1968 are leap years
  • 1971, 2006 are not leap years
  • 1200, 1600, 2000, 2400 are leap years
  • 1700, 1800, 1900 are not leap years

 

Your program will then display a greeting to the user and tell them which season they were born and whether it was a leap year or not. The content of your message is shown below.

For example:

The user enters their name is “Jim Pembry” and they were born in the month “6” and the year 1971. Your program should display this exact message:

Hello, Jim Pembry! You were born in the summer and 1971 was not a leap year.

Make sure you get the spacing and punctuation as shown.

Expert Solution
Step 1 Summary

I have provided  PYTHON  CODE  along  with CODE  SCREENSHOT  and  OUTPUT  SCREENSHOT--------------------

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education