Question: Create a Java program that determines if a day, chosen by the user and represented by a number ( with Monday as 1 and Sunday

Create a Java program that determines if a day, chosen by the user and represented by a number (with Monday as 1 and Sunday as 7), is a weekday or a weekend. Please provide solutions using both:
1- if-else statements.
2- switch-case statements.
 Create a Java program that determines if a day, chosen by

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 Databases Questions!