1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bond [772]
2 years ago
8

Write a short program that asks the user to enter a month & prints a message based on the month

Computers and Technology
1 answer:
vazorg [7]2 years ago
7 0

Answer:

The Code:

def month(x):

    if (x==1):

        print ("January")

    if (x==2):

        print("February")

    if (x==3):

        print("March")

    if (x==4):

        print("April")

    if (x==5):

        print("May")

    if (x==6):

        print("June")

    if (x==7):

        print("July")

    if (x==8):

        print("August")

    if(x==9):

        print("September")

    if(x==10):

        print("October")

    if(x==11):

        print("November")

    if(x==12):

        print("December")

    if(x<1 or x>12):

        print("Wrong Input! Try again")

month = int(input("Enter the month number: "))

month(month)

Explanation:

The above program is written in the PYTHON programming language.

In this program, the user inputs the number of any month, showing the month name in the output. For example,

if user enters 1, month name = JANUARY

if user enters 5, month name = MAY

and if the user enters 13, then output = Wrong Input! try again

#SPJ2

You might be interested in
What is the last step in conducting a URL search
Feliz [49]
The request goes through a router or the modem to the user's ISP. 

6 0
3 years ago
Read 2 more answers
Which of these is a benefit of using the Sort option?​
Reika [66]

There are many benefits of using the shot options in Excel. Some benefits are allowing you to short by number,date,color, letter, columns,or text. This benefits the user because it allows the user to bring data up more easily.

I hope this answers is helpful

3 0
3 years ago
Which of the following variable declarations is a correct assignment?
Gwar [14]

Answer:

Option D: double y = 82;

Explanation:

In Java programming, it is acceptable to assign an integer (lower type) to a double type (higher type) variable. By assigning an integer to double type variable using the "=" operator, the integer will be converted to double type implicitly. It is known as the implicit type casting.  

For example, <em>double y = 82</em> will convert integer 82 (integer) to 82.0 (double).

6 0
3 years ago
Is it possible to build something that doesn't exist yet?
Anastasy [175]

Answer:

yes

Explanation:

how do u think other thing were built like when phones were first made

5 0
4 years ago
What do the blocks in the looks category do?
mart [117]

Answer:

if u have a question can I see it

Explanation:

so I can know the answer choose

6 0
3 years ago
Other questions:
  • Write the interface (.h file) of a class GasTank containing: A data member named amount of type double. A data member named capa
    13·1 answer
  • Microsoft windows server and linux are examples? of:
    12·1 answer
  • Sending an e-mail message to customers or potential customers of a legitimate website asking them to click a link that leads to
    10·1 answer
  • Before entering a road from an alley or driveway, you must:Flash your high beam headlights 
    13·1 answer
  • Find the maximum value and minimum value in below mention code. Assign the maximum value to maxMiles, and the minimum value to m
    11·1 answer
  • What scheme is usually used today for encoding signed integers?
    5·1 answer
  • In wheat, kernel color is determined by additive alleles at two unlinked loci. If two plants, one with dark red kernels (+++– ge
    7·1 answer
  • Which is better PS4 or Xbox 1?
    13·2 answers
  • Why should the Six-Step Process be considered as an iterative process?
    8·1 answer
  • Element of python which is valid syntax patterns
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!