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
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