Suppose you are collecting money for something.

You need # 200 in all. You ask your parents, uncles

and aunts as well as grandparents. Different people

may give either ` 10, ` 20 or even ` 50. You will collect

till the total becomes 200. Write the algorithm.ā€‹

Respuesta :

fichoh

Answer:

Step 1 : Start

Step 2 : Set target= 0

Step 3 : Use a While loop

Step 4 : input donation

Step 5 : Sum - - > target += donation

Step 6 :, check loop condition

Step 7 : End

Explanation:

Algorithm is a sequence of written instructions or steps which we want the computer to in other to solve a particular problem :

Counter is set at 0

Total amount is initially set to := 0

Using a while loop ;

While target amout is less than 200 ; user inputs the amout to donate and it is added to target amount. This loop continues until target amount is greater than 200. Then the loop terminates.