Suppose that a survey has been conducted to identify the favorite subjects among students in CUI Wah.
Fantastic news! We've Found the answer you've been seeking!
Question:
Suppose that a survey has been conducted to identify the favorite subjects among students in CUI Wah. The results were recorded in 2D Array Subject in JAVA as follows:
String[][] Subject = {{“Kasim” , “OOP”} , {“Talha” , “DSA”} , {“Naima” , “PF”} , {“Muneeb” , “DSA”} , {“Hamza” , “Calculus”} , {“Alishba” , “MultiCal”} , {“Jannat , “DSA”}} ; Determine the outputs after executing the following statements.
(i) System.out.println ( Subject [3] [0] );
(ii) System.out.println ( Subject.length);
Write JAVA code in at most 4 statements to calculate total number of students whose favorite subject is dsa.
Related Book For
Business Statistics a decision making approach
ISBN: 978-0133021844
9th edition
Authors: David F. Groebner, Patrick W. Shannon, Phillip C. Fry
Posted Date: