Question: PLEASE USE PYTHON VERSION 3 # CPSC 217 Exercise 4: Display a message that includes rdinal numbers # Put your implementation for int2 rdinal here.

PLEASE USE PYTHON VERSION 3

PLEASE USE PYTHON VERSION 3 # CPSC 217 Exercise 4: Display amessage that includes rdinal numbers # Put your implementation for int2 rdinal

# CPSC 217 Exercise 4: Display a message that includes rdinal numbers # Put your implementation for int2 rdinal here. My implementation was 10 # lines f code (not counting comments and blank lines). # Don't change any code below this point in the file. # Demonstrate the int 2 ordinal function by reading a day, month and year and # displaying the entered values as ordinal numbers as part of a longer message. def main ) dayint (input ("Enter a day between 1 and 31: " month -int (input ("Enter a month between 1 and 12: " year = int (input ("Enter a year between 1 and 2100: ")) print ("On the", int2ordinal (day), "day of the", int2ordinal (month), "month of the", int2ordinal (year), "year, something amazing happened!") # Call the main function main)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!