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
THis took FOREVER! please go check it out, if you have seen my demo to this game, you will like the full version! https://scratc
skad [1K]

Answer:

Sure! I'll comment in the comments of this answer on how it was <3

5 0
3 years ago
Read 2 more answers
A data dictionary is sometimes described as "the database designer's database" because it records the design decisions about tab
MrRa [10]

Answer:

True is the correct answer for the above questions.

Explanation:

  • A data dictionary is used to hold the structure and definition of the database. It is because it is used to hold information about the database or operational database.
  • It is a set of schema through which the user can understand the structure of the database. It can be used to define the metadata also. The metadata detailed the data of a database.
  • The above question-statement also wants to states about the same which is described above which is the definition of the data dictionary. Hence it is a true statement.
4 0
3 years ago
True or false? The largest component of a database is a field.
Sergio [31]
Maybe true,or maybe false,you never know.
7 0
4 years ago
Read 2 more answers
Although you can use a dialog box to indent paragraphs, word provides a quicker way through the ____.
pishuonlain [190]
B. Quick access toolbar

3 0
3 years ago
Which of the following correctly describes the syntax of an If statement?
Ber [7]

if(Expression to be tested) {

code to execute

} else if(Expression to be tested) {

code to execute

}


you can have as many else ifs as you want. But that's what it looks like.

8 0
4 years ago
Other questions:
  • A pacing calendar is provided to students so they can:
    8·2 answers
  • Ipv6 includes a native information security framework (ipsec) that provides both data and control packets. true false
    15·1 answer
  • On what basis can you categorize the generations of computers?
    11·1 answer
  • HELP ME FAST???
    15·1 answer
  • Discuss briefly general-purpose graphicsprimitives that contain 2D graphics library.
    15·1 answer
  • Copyright ownership analysis starts with this principle: The ________ is the owner.
    6·1 answer
  • Which statement about broadcasting a slideshow online is true?
    14·2 answers
  • Why would internet speed test be different on same network
    8·1 answer
  • What is the purpose of linking text boxes?
    5·1 answer
  • A network administrator is importing a list of certificates from an online source, so that employees can use a chain of trust an
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!