Question
Question 18 // Write the explanation!!!!! What is the output of this code sequence? double [ ] [ ] a = {{ 100.4, 99.6, 48.2,
Question 18 // Write the explanation!!!!!
What is the output of this code sequence?
double [ ] [ ] a =
{{ 100.4, 99.6, 48.2, 65.8 }, { 100.5, 99.7, 48.2, 65.8 }};
double temp = a[0][1];
for ( int i = 1; i < a.length; i++ )
for ( int j = 1; j < a[i].length; j++ )
{
if ( a[i][j] > temp )
temp = a[i][j];
}
System.out.println( temp );
a. | 99.6 | |||||||||||||
b. | 100.4 | |||||||||||||
c. | 99.7 | |||||||||||||
d. | 100.5 Question 27 // If the answer is a, Eplain why the answer is a not b; If the answer is b, explain why the answer is b not a; If the answer is both a and b, explain why. Assuming the class B extends class A, then
|
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