The purpose of this activity was to teach us about programming. In this activity we had to give instructions to stack cups according to the pictures, we had eleven of these pictures. The first few were easy but it got harder as I progressed. when progressing the steps got longer and complicated, there were different steps like rotating the cup and putting them in different rows. when doing this activity I needed to have a set of instruction like when I put the cup down, go back and pick up another cup. when doing this I also made a mistake, in first few challenges I wrote the whole code down in big sentences, its then I realized my mistake that if I wrote the whole code down it would take me forever to do it, so I switched my code from full sentences to arrows and it made my life way easier.
Sequential
Sequential means arranged in a sequence or in order, like you count numbers from 1 to 10, there is a order where you follow and you wouldn't say 2 before 1 that would be wrong, so you would follow a common sequence. I also followed a common sequence while I was doing the cup stacking activity, for example when I was putting the cup down I had to go back and pick up another cup before doing anything else. I was doing this order each time putting the cup down. Another example I did was doing sequential was after picking up the cup I was going left each time by 2 then 4, 8 and so on. This sequence you go to the left by 2 each time.
|
Repetition
In simple words it means a thing that is being repeated, for example when walking to school you will walk until something gets in your way or if there is a light you have to cross, it was repeated until something happened. It is also be done while a condition is true, for example when I was doing the cup stacking actively I said in my code 2 row or 3 row for the cups if you are on the 2 row then only put the cup down else don't, that's some of the way I did repletion.
|
Conditional
Conditional is like a if statement if something is true do something and if its false do something else, for example while driving and you stopped in a red light a if statement could be if the light turns green go else don't or remain still. When doing this actively I didn't use this if statement inn my code and I now realized how big of a mistake I made, I thought that if I add this it would be confusing or hard to make for someone to read my code I realized it would 've made my life easier.
|