Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Loops are used to total the values in a numeric array, by which process the loop

ID: 3731919 • Letter: L

Question

Loops are used to total the values in a numeric array, by which process the loop steps through the array adding the value of each array element to the Your answer module is one that performs a single well- defined task. Your answer Declare Integer numberOfAccidents 3 Declare Integer age 25 If numberOfAccidents = 25 Then Display "You qualify for insurance discount" Else Display "Your discount is denied" End If What will be displayed after the code above is executed? Your answer Constant Integer SIZE = 15 Declare Integer membersISIZE] set members[15] = 20 What is wrong with the array code above? Your answer

Explanation / Answer

1. next element of array

2. function

3. your discount is denied.

4. Set members[15] = 20

5. eye_color

6. 10.55

7. 0 because num is smaller then 10 so loop will not execute

8. Exit control