if (amount > 1000)
result = 1;
else
if (amount > 500)
result = 2;
else
if (amount > 100)
result = 3;
else
result = 4;
-What is stored in result when amount is equal to 876?
A) 1
B) 2
C) 3
D) 4
Correct Answer:
Verified
Q41: if (value1 > value2) largestOne = value1;
Else
If
Q53: if (aValue < largest ) result =
Q56: if (a > 10)
if (b > 10)
if
Q56: if (examScore > 89)
grade = 'A';
Q57: How can the compound conditional expression ((average
Q60: A company issues $5,000.00 bonuses at the
Q65: By properly _ the else clauses with
Q70: _ operators allow you to test variables
Q71: The _ method will convert a string
Q74: Forms of the if statement include one-way,
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