Examlex

Solved

In the Following Code, What Values Could Be Read into Number

question 20

Multiple Choice

In the following code, what values could be read into number to terminate the while loop? Scanner keyboard = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
Int number = keyboard.nextInt() ;
While (number < 100 && number > 500)
{
System.out.print("Enter another number: ") ;
Number = keyboard.nextInt() ;
}


Definitions:

Interest Rate

The portion of a total amount of money levied for borrowing it, usually represented as a yearly rate.

Amount

The total sum or quantity of something.

Annuity Payment

Regular periodic payments made to an annuitant or beneficiary, often fixed sums received from a retirement account or insurance policy.

Rate Of Interest

The percentage of a loan incurred as interest cost to the borrower, usually expressed as an annual rate.

Related Questions