learning pseudocode
sir was explaining the document "pseudocode examples"
a type of loop: repitive , this could essentially lock-up your program
e.g will stop when the counter gets to go upto until; the grade ciounter reaches 11, where it will stop and then do the last line - set class average to total divided by ten
--> this variable is being set to the result of a calculation
`this could be the description of a small program
pseodocodes have lots of different variations but thesde can be worked out
the decison goes into the while loop
and it has a score going, it also knows when to stop the loop.
do until - is a variable
you can keep an if inside an if , incase there are multiple things to choose from
enf id and case if is another way of ending things
example of a car coming in the near distance - i need to break it down into individual steps
the device (car) should be constantly wat ching the traffixc light -- some ,kind of loop which letsyou see which colour it is then determine whether its green, red or amber
based on that, have different outcioomes for each colour
No comments:
Post a Comment