Loop Ex 1 - Collect Donations

Created By: M Ritter | Difficulty Level: 2

Description

An algorithm is required to help a charity worker keep a tally of the total donations they have collected. The algorithm should prompt the user for the number of people they have collected donations from, then allow the user to enter the amount donated by each person and add it to the total. At the end, the total collected is output.

Puzzle

Drag from here

  • NEXT count
  • SET total = 0
  • OUTPUT total
  • ENDFOR
  • FOR count = 1 to numPeople
  • INPUT numPeople
  • END
  • INPUT donation
  • BEGIN
  • CALCULATE total = total + donation

Construct your solution here