For the following questions, refer to the class defined below:
import java.util.Scanner;
public class Questions
{
public static void main(String[ ] args)
{
int x, y, z;
double average;
Scanner scan = new Scanner(System.in) ;
System.out.println("Enter an integer value") ;
x = scan.nextInt( ) ;
System.out.println("Enter another integer value") ;
y = scan.nextInt( ) ;
System.out.println("Enter a third integer value") ;
z = scan.nextInt( ) ;
average = (x + y + z) / 3;
System.out.println("The result of my calculation is " + average) ;
}
}
-Questions33_34 computes
A) The correct average of x, y and z as a double
B) The correct average of x, y and z as an int
C) The average of x, y, and z as a double, but the result may not be accurate
D) the sum of x, y and z
E) the remainder of the sum of x, y and z divided by 3
Correct Answer:
Verified
Q21: Assume that x is a double that
Q23: Which of the following would return the
Q23: Which library package would you import to
Q24: For the following questions, refer to the
Q25: Consider the following paint method and answer
Q27: Consider the double value likelihood = 0.013885.
Q28: In order to create a constant, you
Q29: Consider the following paint method and answer
Q30: You specify the shape of an oval
Q31: What value will z have if we
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents