Question
C++ Using the Enumerated Type we talked about in lecture: enum Days{ SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }; #1 Write 2 functions One
C++ Using the Enumerated Type we talked about in lecture: enum Days{ SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }; #1 Write 2 functions One to convert a string into the Days type One to convert a Days type into a string #2 Write the code to read in a day as a string input, convert it to the Days type, convert it back to a string and output the value. Use the expected Input/Output described below.
Screen I/O:
What day is today? Monday Today is MONDAY! What day is today? Tuesday Today is TUESDAY! What day is today? Wednesday Today is WEDNESDAY! What day is today? Thursday Today is THURSDAY! What day is today? Friday Today is FRIDAY! What day is today? Saturday Today is SATURDAY! What day is today? Sunday Today is SUNDAY! What day is today? No Day **** Invalid day input! **** Today is INVALID!
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