Answered step by step
Verified Expert Solution
Question
1 Approved Answer
for Java 1. Declare a reference variable for an integer data type, use the identifier age. 2. Declare an array of integers - with the
for Java
1. Declare a reference variable for an integer data type, use the identifier age. 2. Declare an array of integers - with the capacity of 37 integers. Also, declare the reference variable - grades. 3. Declare a String variable - singer - and assign it the value "Taylor Slow". DO so in one instruction, then do so using 2 different instruction steps. 4. Using the variable singer from the question above (3) - print the phrase "Taylor Slow sings country." 5. Evaluate each of the following numeric expressions: a. 34 + 1.7 b. 23 % 3 + 4* 2.8 C. 10 - 4 - 1 + 7 d. 2-3*4 + 5 6. Print the square root of 83.6 7. Print the cube root of 83.6 8. What planet(s) would print? int r = 3.4 ; if ( r > 3 ) System.out.println( "Neptune" ); else System.out.println( "Venus" ); 9. Given the array declaration as follows: int[] ar = { 32, 88, 64, 19, 7, 28, 53 } ; evaluate each of the following expressions: . ar [2] ar [3] + 3 ar.length ar[1] += 11 O 0 what would print: for ( int i = 3; i 3; i--) System.out.print ( ar[i] + " ")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