Question: Programming Language: Swift 4.0.3 Write a program that prompts the user for a date in the form of mm/dd/yyyy. Then prints the date in the

Programming Language: Swift 4.0.3

Write a program that prompts the user for a date in the form of mm/dd/yyyy. Then prints the date in the form of "Month dd, yyyy" using a dictionary (not an array) to convert numeric months to month names. For example, if the user enters "9/22/2018", your program should return " September 22, 2018". Your program should not contain a 12-level "if-else-if" statement to do this. Nor should it contain a "case" statements. The word "Optional" should not appear in your output. You will need to tokenize the input data string to extract month, date and year. Swift's string class has a method called split() which permits us to easily tokenize a string.

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!