January 2014
Intermediate to advanced
736 pages
70h 43m
English
C.22 Describe the four basic elements of counter-controlled repetition.
C.23 (Find the Smallest Value) Write an application that finds the smallest of several integers. Assume that the first value read specifies the number of values to input from the user.
C.24 Assume that i = 1, j = 2, k = 3 and m = 2. What does each of the following statements print?
a) System.out.println( i == 1 );
b) System.out.println( j == 3 );
c) System.out.println( ( i >= 1 ) && ( j < 4 ) );
d) System.out.println( ( m <= 99 ) & ( k < m ) );
e) System.out.println( ( j >= i ) || ( k == m ) );
f) System.out.println( ( k + m < j ) | ( 3 - j >= k ) );
g) System.out.println( !( k > m ) );
C.25 (Calculating the Value of π) Calculate the value of ...
Read now
Unlock full access