Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
# 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started