Question: C# Write a Console App that when you enter a number the Consoleoutput will display the corresponding string of the dayof the week. Include user
C#
Write a Console App that when you enter a number the Consoleoutput will display the corresponding string of the dayof the week.
- Include user input prompt
- Include input validation for user input
- Expecting an integer
- Expecting range 1 to 7
- Prompt user until valid input
- Use a switch statement
- Include only ONE Console.WriteLine() at the to print the day ofthe week.
For example, 1 = Monday, 2 = Tuesday, ..., 7 = Sunday.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
