How did you get on working out the rest of
the pie chart to represent the data of the
people buying food at lunchtime? I expect
that you will have used Scratch to perform
the calculation. But if you'd actually worked
out the angles yourself, these are the numbers
that you would have come up with. Spend some
time looking at these. You can see that for
each angle, these are in the same proportion
out of 360 degrees as the individual numbers
of people for each category are out of 200.
Here we have all the blocks of code to create
all the angles represented by the data in
the problem we had. I hope you have got the
same as I have. So first of all you had drink
and snack which was 20 people, then a hot
meal which was 60 and then salad which was
25, the sandwich which was 55 and lastly soup
and bread which was 40. We only need this
block of code really in order to bring the
sprite facing back up this way. We don't actually
need to draw another line. The sprite's here,
we just need to get it back up here. But for
completeness, I've done that extra block of
code as well. When you've done this don't
forget to save your work.
