Question: 3. Transplant the Java code in Fig. 3 to Cobol code, compile and run it. Show source code and result using screenshots. Note that screenshots

 3. Transplant the Java code in Fig. 3 to Cobol code,

3. Transplant the Java code in Fig. 3 to Cobol code, compile and run it. Show source code and result using screenshots. Note that screenshots must include your ID. (20 points, all students) public static void main(String[] args) { int day = 5; String dayString; // switch statement with int data type switch (day) { case 1: dayString = "Monday"; break; case 2: dayString = "Tuesday"; break; case 3: dayString = "Wednesday"; break; case 4: dayString - "Thursday"; break; case 5: dayString "Friday"; break; case 6: dayString = "Saturday"; break; case 7: dayString = "Sunday"; break; default: dayString = "Invalid day"; ) System.out.println(dayString); 3 Fig. 3

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!