Write a shell program to illustrate the case statement.
Here's a simple shell program that demonstrates the use of a `case` statement in both Windows (using PowerShell) and Linux (using Bash). This script will prompt the user to enter a number corresponding to a day of the week and then display the name of the day.
### Windows (PowerShell) Example
```powershell
# PowerShell script to illustrate the case statement
# Prompt user for input
$dayNumber = Read-Host "Enter a number between 1 and _______ __________ ________ _____ _______ ______ ________ _______ _______ ___.
__________ _________ _____ ___ _________ ____ ____ _______ ___.
________ ______ __________ ________ __________ ____ _____ _______ __________.
____ _____ ________ ____ ________ _________ ______ _______ ____ ________ ____.
_____ _________ ____ _______ ______ ______ ____ ______ __________ ______ _________ _________.
_____ ______ _____ ____ _____ ______ ________ ____ ________ ____ _________.
______ ________ _______ ____ _________ ___ ___ _________ __________ __________ __________.
_________ ________ _______ ______ _______ _________ ____ ________.
_______ ___ __________ ______ _____ _________ _______ _______.
__________ _________ ____ ___ ____ _______ __________ _____ _______.
___ _______ _______ __________ ____ ________ ________ ________ _______ _______ ___ __________.
________ ____ ___ __________ _____ ______ _____ ________ ______ ______ ______.
___ ____ ____ ____ ___.
_________ __________ _________ ______ _________ ________ ______ _________ ______ ___.
_______ ______ _________ __________ __________ _______ ______.
____ ______ _________ _________ ______ _________ _____ ____ _________ ____ _______.
____ __________ ____ _____ ____ ________ ______ ________ _____ _______.
_____ _____ ___ ___ ______ ______.
_________ _______ _____ ______ ____ _________ _________ ________ ____ __________ _____ ________.
_____ _____ _________ _________ ____ ____ _____ __________ _____ _________ ___ _________.
__________ ________ _________ ___ _______.
______ ______ _________ ______ _____ _________ _______ ____ _________ _______ ________.
______ ___ ________ _________ _________ ___.
__________ __________ _______ ________ ___.
________ _______ ____ ______ ________ _____ ________.
___ ________ ______ _____ _________ __________.
_______ __________ _________ ___ _____ ________ _____ __________ __________ _________.
_______ ________ _______ _________ ____ ___ ________.
________ ____ ______ __________ ____ ___ _____.
_____ ________ _______ __________ __________ __________.
____ _______ _________ _________ _______ ______.
____ _________ _________ ____ ___ ________ ______ ___ ____ ___ ____.
________ ________ _________ _____ ________ __________ _____ _________.
_________ _________ _________ ______ ________ ______ ___ _______ _______.
____ ________ _______ _____ __________ ________ ______.
Get Full Answer on WhatsApp