Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

_-ZOOM 1. Using PyDev in Eclipse, create the Python module Project5Part1 that accepts an integer value as input from the user. This integer will represent

image text in transcribedimage text in transcribed

_-ZOOM 1. Using PyDev in Eclipse, create the Python module Project5Part1 that accepts an integer value as input from the user. This integer will represent a month in a year (.e. 1 is "January"]. Create a dictionary object that contains the months of a year; the dictionary key will be the numeric value of the month, and the dictionary value will be the string value of the month Use an if...then condition to check if the month entered by the user is in the dictionary. o Output the string value for the month from the dictionary if found. o If not found, display the string "Bad Month" Output Example #1 Enter an integer value for a month 13 Bad month Output Example #2 Enter an integer value for a month: 11 November 2. Using PyDev in Eclipse, copy the Python module Project5Partl and name the module Project5Part2 . Rather than using an If statement to check the user Input, use the dictlonary's "get)" operation. The "get()" operation should output the string value for the month from the dictionary if found. If not found, the "get()" operation should display the string "Bad Month" o o Output Example #1 Enter an integer value for a month: 22 Bad month ZOOM Enter an integer value for a month: 11 November 2. .Using PyDev in Eclipse, copy the Python module Project5Partl and name the module Project5Part2. Rather than using an if statement to check the user input, use the dictionary's "get)" operation. The "get()" operation should output the string value for the month from the dictionary if found. o o If not found, the "get()" operation should display the string "Bad Month" Output Example #1 Enter an integer value Ior a month: 22 Bad month Output Example #2 Enter an integer value or a month:6 June

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions