Examlex

Solved

Example Code Ch 02-2

question 62

Multiple Choice

Example Code Ch 02-2
import java.util.Scanner;
public class Questions33_34
{
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) ;
}
}
-Refer to Example Code Ch 02-2. This code computes


Definitions:

Revenue

The total income generated by a company from its normal business operations.

Society

A group of individuals involved in persistent social interaction, or a large social grouping sharing the same geographical or social territory, typically subject to the same political authority and dominant cultural expectations.

Owners

Individuals or entities that have legal ownership and rights over property, assets, or businesses.

Categorical Imperative

A concept developed by the philosopher Immanuel Kant as an ethical guideline for behavior. In deciding whether an action is right or wrong, or desirable or undesirable, a person should evaluate the action in terms of what would happen if everybody else in the same situation, or category, acted the same way.

Related Questions