Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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