P3
In computer programming, we are using a sequence which is keeping all the code in a line to make it easier for everyone to read your code. If you keep your code in sequence and any error occurs, it is way more easier to find the problem and resolution for it as you can clearly see what's going on with your coding. Also the closing and opening brackets for coding are spread with the same amount of space which makes your coding more organised, so if someone wants to change and improve your code, it will be easier for him to make some changes with it. Also in computer programming a selection is used. A selection in coding is using IF statements to make something happened, for example when you're making a game, you can use an IF statement to move objects from one place to another. The IF statements could be for example, IF something happens do something. However they can also be more complicated. You can also put an IF statements in a loop so it will keep happening if something happens. You can see an IF statement example below. There's also an iteration which is repeating the same instructions or structures in a sequence for a specified number of times, or until a specified activity is met in your code. It will keep it going for a specified of time and if nothing happens it will stop, except if a specified condition is met.

Comments
Post a Comment