Computer Science Homework Help. Los Angeles Pierce College Pseudocode and Computer Science Questions

“Computer Science Homework Help”,
“text”: “Computer Science Homework Help. Los Angeles Pierce College Pseudocode and Computer Science Questions

1. Consider the following pseudocode.i = 0sum = 0REPEAT UNTIL i = 4 i = 1 sum??? sumWhat is the output?Nothing – infinite loop.The number 4 is displayed.The number 0 is displayed.The number 1 is displayed.2. To have a set of command execute multiple times in a program, you would want to use a loop. What types of loops are available in programming?Do whileRepeatFor nextWhile3. Consider the following code:sum = 0j = 0DO WHILE j < 3 DISPLAY (?Enter any number between 1 and 100?) INPUT num IF(num >= 1 AND <= 100) sum = sum num ENDIFEND DO WHILEavg = sum / jWith inputs of 0, -1, 4, 8 and 12, what will be the output?An infinite loopA correct averageAn incorrect averageA run time error Computer Science Homework Help”,
“answerCount”: 1,
“dateCreated”: “2022-03-10”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Here is the solution for your q…”,
“dateCreated”: “2022-03-10”,
“url”: “/computer-science-homework-help-12356/”
}
}
}

1. Consider the following pseudocode.
i = 0sum = 0REPEAT UNTIL i = 4 i = 1 sum??? sum
What is the output?
Nothing ? infinite loop.
The number 4 is displayed.
The number 0 is displayed.
The number 1 is displayed.
2. To have a set of command execute multiple times in a program, you would want to use a loop. What types of loops are available in programming?
Do while
Repeat
For next
While
3. Consider the following code:
sum = 0j = 0DO WHILE j < 3 DISPLAY (?Enter any number between 1 and 100?) INPUT num IF(num >= 1 AND <= 100) sum = sum num ENDIFEND DO WHILEavg = sum / j With inputs of 0, -1, 4, 8 and 12, what will be the output? An infinite loop A correct average An incorrect average A run time error Computer Science Homework Help