Question: java 15 points. Program 1: Implement switch loop for a problem to jind out the4th dayofaweek. The4th dayoftheweek is Wednesday.Afteryou have implemented the Switch loop
java
15 points. Program 1: Implement switch loop for a problem to jind out the4th dayofaweek. The4th dayoftheweek is Wednesday.Afteryou have implemented the Switch loop when yourare printing using the System.out.println the output should have Wednesday. class Main { public static void main(String[] args) { int week = 4; String day; // I will be looking for comments explain why and what you have in each case block and correct implementation of Switch syntax // if you know of switch syntax you can implement easily System.out.println("The day is " + day); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
