Upload the Python file named lab2_last_first.py to your Blackboard section: o On Blackboard, navigate to the appropriate lab item.

Lab 2 – Branching
Write a Python program that gets user input and branching.
Lab Description
The Chinese Zodiac is based on a 12-year cycle. Each year within a 12-year period is represented by a different animal. The first year is the year of the monkey, with the second year  being the year of the rooster. This continues until the 13th year , which goes back to monkey. Write a program that prompts the user to enter a year and outputs the animal in the Chinese Zodiac for the year. There is an image to show the Chinese Zodiac signs and some of the years. Note that you will need it to work for any year, not just the ones listed in the image below.
Steps
⦁ In PyCharm , open your existing ITP115 project.
⦁ Under the Labs directory, create a new Python file called lab2_last_first.py where last is your last/family name and first is your preferred first name. Use all lowercase letters.

This content is protected and may not be shared, uploaded, or distributed.
ITP 115 2022-08-20
⦁ At the top of the file, put comments in the following format and replace the name, email, and section with your actual information:
⦁ # ITP 115, Fall 2022
⦁ # Section: number or nickname
⦁ # Lab 2
⦁ Ask the user for the year. Make sure to convert the year to an integer. The user input is shown in green text.
⦁ Enter year: 2000
⦁ Use the modulus operator to get a value between 0 and 11 and store it in a
variable.
⦁ Use branching to map the number to a specific animal and store it in a variable.
⦁ Print a message with the year and animal using the appropriate variables.
2000 is the Year of the Dragon.
⦁ Upload the Python file named lab2_last_first.py to your Blackboard section: o On Blackboard, navigate to the appropriate lab item.
o Click on the specific item for this lab.
o Click on the Browse Local Files button and select the file.
o Click the Submit button.
Additional Notes

Last Completed Projects

topic title academic level Writer delivered
© 2020 EssayQuoll.com. All Rights Reserved. | Disclaimer: For assistance purposes only. These custom papers should be used with proper reference.