Just use the example to base your answers on.
For example, problem 1:
Step 1. Understand the problem: A list of x many values will be entered and you have to display the total along with how many there are (x).
Step 2. Devise a solution - draw a similar diagram as seen in the book:
Initialise values -> total=0, count=total
Process numbers -> process element in list while current element is not equal to 0 -> read value, add to total, add to count
Display answers -> print total, print count
Initialise vals: count = 0
total = 0
Process numbers: while not value of element in list = 0, do:
read element;
add element to total val;
add 1 to count
end while
Display answer: Print: total (gives total cost)
Print: count (gives number of items)