Prompt the user to enter a 3-letter abbreviation or a day of the week and display the full name of the day of the week. Use an enumerated data type to solve this problem. Enumerate the days of the week in a data type. Start with Monday and end with Friday. Set all of the characters of the user input to lower case. Set an enumerated value based on the user input. Create a function that displays the name of the day Based on the value passed from main(), the function should display the corresponding full name of the day of the week. If the user entered a correct 3-digit abbreviation for a day of the week in step 4, then call the function your created in step 5. If the user did not enter a correct 3-digit abbreviation for a day of the week, then display an error message.
Create in C++
Prompt the user to enter a 3-letter abbreviation or a day of the week and display the full name of the day of the week. Use an enumerated data type to solve this problem.
Enumerate the days of the week in a data type.
Start with Monday and end with Friday.
Set all of the characters of the user input to lower case.
Set an enumerated value based on the user input.
Create a function that displays the name of the day
Based on the value passed from main(), the function should display the corresponding full name of the day of the week.
If the user entered a correct 3-digit abbreviation for a day of the week in step 4, then call the function your created in step 5.
If the user did not enter a correct 3-digit abbreviation for a day of the week, then display an error message.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images