Question: The given expression ( ( studentsInput < 8 5 0 0 ) && ( studentsInput > 2 1 5 0 0 ) ) incorrectly uses

The given expression ((studentsInput <8500) && (studentsInput >21500)) incorrectly uses the < and > operators. The expression evaluates to true if studentsInput is less than 8500 AND greater than 21500. No such integer value exists, so the expression always evaluates to false.
Changing the operators to >= and <= respectively causes the expression to evaluate to true if studentsInput is greater than or equal to 8500 AND less than or equal to 21500.
Not all tests passed.
clear

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!