Question: Which XXX and YYY correctly output the smallest values? Array userVals contains 1 0 0 elements that are integers ( which may be positive or

Which XXX and YYY correctly output the smallest values? Array userVals contains 100 elements that are integers (which may be positive or negative). Choices are in the form XXX / YYY.
// Determine smallest (min) value int minVal; XXX for (i =0; i <100; ++i){ if (YYY){ minVal = userVals[i]; }} System.out.println("Min: "+ minVal);
Question 7 options:
minVal =0; / userVal < minVal
minVal = userVals[0]; / userVals[i]< minVal
minVal =0; / userVal > minVal
minVal = userVals[0]; / userVals[i]> minVal

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!