Examlex

Solved

For the Following Questions, Refer to the Class Defined Below

question 39

Multiple Choice

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) ;
}
}
-What is output if x = 0, y = 1 and z = 1?


Definitions:

International Organizations

Entities established by treaties or other agreements between governments that operate across national boundaries to pursue common goals.

International Monetary Fund

An international organization created for the purpose of promoting global monetary cooperation, ensuring financial stability, facilitating international trade, promoting high employment and sustainable economic growth, and reducing poverty around the world.

International Bank for Reconstruction and Development

The International Bank for Reconstruction and Development, part of the World Bank Group, is an international financial institution aimed at reducing poverty by providing loans to developing countries for capital programs.

Lex Mercatoria

A set of legal principles that govern international commercial law and practices, often used to resolve disputes in international commercial arbitration.

Related Questions