Question: Task 4 . Weekday or Weekend Write a program using a switch statement to show whether day of the week is a weekday or weekend.
Task Weekday or Weekend
Write a program using a switch statement to show whether day of the week is a weekday or weekend. The day of the week is read in from the user as string: Monday through Friday are assumed to be weekdays and Saturday and Sunday are weekend days. Assume the day of the week will be lowercase.
Sample output, The user's input is shown in bold:
Enter a day of the week eg monday, tuesday, etc: wednesday Enter wednesday is a weekday.
Remember, these are just examples, and your results might differ based on your code and the values you choose.
Also, please explain using netbeans As that is what i am using for my assignments per my instructor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
