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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!