Question: 1. (2 points) What does the following code print? double temp -23.0; if (temp - 80) System.out.println(cool' System.out.println( warm); System.out.println(hot); 2. (3 points) Give a

 1. (2 points) What does the following code print? double temp-23.0; if (temp - 80) System.out.println("cool' System.out.println( "warm"); System.out.println("hot"); 2. (3 points)

1. (2 points) What does the following code print? double temp -23.0; if (temp - 80) System.out.println("cool' System.out.println( "warm"); System.out.println("hot"); 2. (3 points) Give a conditional test (to be placed at the underscored location) for the follow ing if statement that will cause it to print Bang if b is positive integer that is a multiple of 7 and less then 100, otherwise it prints Gong int b Integer.parseInt (args[O]); System.out.println("Bang"); System.out.println("Gong") if else 3. (5 points) Give a sequence of if statements that prints out the median value of three distinct integers that are stored in integer variables a, b, and c 4. (2 points) What does the following while loop print? int i-1; while (i 50 ) break; kt 10; System.out.printlnO 6. (2 points) What does the following while loop print? int k = 1; while (k 50&&k

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!