Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 cont'd. Determine the outputs of the following code fragments: (k) short rainfall =34; switch (rainfall) case 1-20: System.out.println(mild); break; case 21-50: System.out.println(heavy); break;
Question 3 cont'd. Determine the outputs of the following code fragments: (k) short rainfall =34; switch (rainfall) case 1-20: System.out.println("mild"); break; case 21-50: System.out.println("heavy"); break; default: System.out.printin("usual"); \} (l) String[] [] gradingSchemes =1 \{"Good", "Fair", "Poor"\}, {"5","5","5","4","3","2","1","0"}, nu11 \}; String [] DSE = gradingSchemes [2] ; DSE [DSE. length-1] = "ABS"; System. out . println (gradingSchemes [gradingSchemes . length-2] [7]) ; System.out . println (gradingSchemes [0] [1] . charAt (3)); System.out . println (gradingSchemes [3]); (m) char j= 'B'; do \{ j--; System.out.println( j ) ; continue; \} while ( j>= 'A')
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started