Computer Science for IGCSE & O level - Programming (Section 14 - No. 36)

In the Totaling example (TotalWeight = TotalWeight + Weight), what does 'Weight' represent?
The initial value of the total weight.
The amount to be added to the total weight.
The final total weight after the calculation.
A constant value used in the calculation.

Explanation

'Weight' represents the value being added to accumulate a total.

Comments (0)

Advertisement