Assume there is an enum type variable declared as follows: enum Day {SUNDAY, MONDAY, TUESDAY, WED…
Assume there is an enum type variable declared as follows: enum Day {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY} Write a program to ask the user to input an integer, decide and generate the output according to the user input and the enum variable, and finally display as the example. REQUIREMENTS • Your code must use enum type variable. • Your code must use switch statement. • Your code must work exactly like the following example (the text in bold indicates the user input).
Attachments: