Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show how to write this code thanks. Write a program that: The program asks the user to specify the name of a month. It

Please show how to write this code thanks. image text in transcribed
Write a program that: The program asks the user to specify the name of a month. It should not make a difference whether any letter in the name appears in lower case or upper case, all such variations should be accepted by the program. If the user entered correctly the name of a month, the program prints out the month name, and the order of that month in the year (e.g., January is the first month, July is the seventh month, and so on). Note that when the program prints out the month name, the first letter of the month name should be capitalized, and all other letters should be in lower case. If the user enters a name that is not recognized, the program prints out "Unknown month: " and the name entered by the user. Note that the name entered by the user should be printed exactly as entered by the user (with no conversions of any letters to upper or lower case). Example Program Run 1: Please enter the name of a month: juNE June is the sixth month. Example Program Run 2: Please enter the name of a month: SUMmer Unknown month: SUMmer Example Program Run 3: Please enter the name of a month: May May is the fifth month

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions