Question: 1. To find the maximum and minimum value in a given set of values: (1 Point) use a for loop and compare the next value

1. To find the maximum and minimum value in a given set of values: (1 Point) use a for loop and compare the next value with the values saved in max and min. Save all the values and use comparison statements to find the maximum and minimum values. Save the maximum value in max and minimum value in min variables, use a for loop and compare the next value with the values saved in max and min. Save the first value in max and min variables, use a for loop and compare the next value with the values saved in max and min 2. If the number of times to repeat a task is known what is the best type of loops to use? 15 (1 Point) While 1- for do while repeat 3. If the number of times to repeat a task is unknown what is the best types of loops to use? (1 Point) repeat While for do while 4. To find the sum of a given set of values: 13 (1 Point) values must be integers Only for loops must be used ting sum must be used with if statements sum must start from zero. 5. To find the sum of a given set of values: (1 Point) value + = sum; should be used inside the loop. sum = sum + value: should be outside the loop then used inside the loop. sum = value + value: should be outside the loop then used inside the loop. sum = sum + value; should be used inside the loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
