In the text box below, write a switch structure which displa…
In the text box below, write a switch structure which displays Weekday if day is 1, 2, 3, 4, or 5 and Weekend if day is 0 or 6. To earn full credit on this exercise, I should be able to copy your switch structure from the text box, paste it into a main() method in NetBeans, and it must work as specified. [Hint: The switch should only display one Weekend or Weekday message for any value of day. For example, if day is 0, the switch should only display “Weekend”. If day is 2, the switch should only display “Weekday”]. Here is an example of what the beginning of the switch should look like. Assume that the day variable has been declared and initialized to an int value between 0 and 6: switch(day) { }
Read Details