Question: Write a program that reads a date from input as string in the form mm / dd / yyyy and then converts and displays the
Write a program that reads a date from input as string in the form mmddyyyy and then converts and displays the date as
its long form
its international short form
For example, if the date entered is its long form is October and its its international short form is
Program Details
Your program must have a dateLongForm function that takes a date as a string in the form mmddyyyy and it returns the date in the its long form. For example, dateLongForm would return "October
Your program must have a internationalShortForm function that takes a date as a string in the form mmddyyyy and it returns the date in the its international short form. For example, internationalShortForm would return
You may assume the user will always give a correctly formatted date.
Hints:
You may find slicing stringstart:end and conditionals useful to solve this prob
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
