1. Using a situation from real life, where you would use a for loop. Write pseud
ID: 3648898 • Letter: 1
Question
1. Using a situation from real life, where you would use a for loop. Write pseudocode to describe the situation and be careful to indent your code.2. Explain if each of the following cases is possible, for a for loop, in general (i.e. NOT for the particular for loop example you have given, but for ALL for loops in general) and if so, describe how it can happen:
1. The body of the loop is never executed.
2. The body of the loop is executed only once.
3. The body of the loop is executed unceasingly.
Explanation / Answer
real life situations: picking up grocery mybudget=budget; for(int item=0,itemRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.