The function getDayOfWeek() takes a day value
as input and returns the corresponding day
of the week based on the following table:
| Value | Message |
|---|
| 1 | Sunday |
| 2 | Monday |
| 3 | Tuesday |
| 4 | Wednesday |
| 5 | Thursday |
| 6 | Friday |
| 7 | Saturday |
If the provided value does not match any of the listed values,
the function returns Invalid day!.
For example: