Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

# 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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions