Answered step by step
Verified Expert Solution
Link Copied!

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;

image text in transcribed 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

Students also viewed these Databases questions

Question

e. What difficulties did they encounter?

Answered: 1 week ago