Exam-style question
Try this first
A program needs to calculate the total of numbers entered by the user until they enter zero.
Description
User Input Totaling
The program should keep asking the user for numbers and add them to a total until the user enters 0, which stops the input.
- a[1]
State the purpose of using iteration in this program.
Aim for approximately 1 distinct marking point.
0 of 1 part answered
Answer every part before opening the mark scheme.
Concise answer preview
Concise answer
To repeat the input process until a condition is met.
Why this is correct
Iteration is used to continuously ask for user input until the stopping condition (entering 0) is met.
Complete every part above to unlock the full mark scheme through the existing protected review flow.
Common mistake
No common mistake is linked to this question yet.
