Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Gaining Proficiency Instructions Instructions Python HW 3 SeasonLeapYear Project Description: Create 2 pieces of code inside this code. Using conditionals, create multiple if statement to determine...

1 answer below »
Gaining Proficiency Instructions
Instructions    
Python HW 3 SeasonLeapYea
Project Description:
Create 2 pieces of code inside this code. Using conditionals, create multiple if statement to determine what season you were born, based on the month you were born. Using another if statement, determine if the year someone was born during a leap year or not.
Needed for this assignment:
Google Colab (GC)
Instructions
To be submitted for this assignment:
Your python file, named LastNameFirstInitialPythonHW3SeasonsLeap.py
A screen shot of your output file, saved as LastNameFirstInitialPythonHW3SeasonsLeapOutput.jpg
Instructions:
The following table shows the steps you will need to follow and the ru
ic that your instructor will use to grade your assignment:
Step    Instructions    Points Possible
1    Open up your Python editor and create a file named LastNameFirstInitialPythonHW3SeasonsLeap.py    5
2    First line of code should have a comment of your name and the CRN of your class.    5
3    Create a variable that will store the value the user entered. Then write code that will ask the user to input the month they were born (Answer should be a number between 1-12).    10
    4
    Â· Output the variable the user entered as the month they were born in a sentence.
    5
    5
    Â· Create a variable that will store the value the user entered. Then write code that will ask the user to enter the year they were born (4 digit form).
    10
    6
    Â· Output the variable the user entered as the year they were born in a sentence.
    5
    7
    Â· Using if/elif/else statements, create a condition that will determine if the user was born in the Spring(4-6), Summer(7-9), Fall(10-12), or Winter(1-3).
    10
    8
    Â· Print out the season in which the user was born in a sentence.
    5
    9
    Â· Using if/else statements and %, create code that will determine if the user was born in a leap year (Anything divided by 4 with a remainder of 0 is good enough).
    15
    10
    Â· Print out a statement, indicating if the birth year inputted was a leap year or not.
    5
    11
    Â· Run and fix your code for any e
ors.
    5
    12
    Â· Compare your output as the sample output.
    5
    13
    Â· Create a screen shot of your output and name the output as LastNameFirstInitialPythonHW3SeasonsLeapOutput.jpg.
    10
    14
    Â· Save your file and submit, both the output and the code.
    5
    
    
    100
    Python Homework Instructions.docx
Answered 1 days After Apr 18, 2021

Solution

Ankit answered on Apr 20 2021
156 Votes
month = int(input("Can you please enter the month in which you were born (1-12) = "))
print("You were born in " + str(month) + " month")
year = int(input("Can you please enter the year in which you were born (YYYY) = "))
print("You were born in " + str(year) + " year")
if((month==1) or...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here