[Year 12 SofDev] loops and trace tables
WILKIE. John
wilkjoh1 at lavalla.vic.edu.au
Tue Feb 28 10:09:15 AEDT 2017
Hi All!
Hope you are all good. First time Soft Dev teacher here.
I'm looking at loops and trace tables at the moment. I'd like to confirm the Pseudocode you could use for a loop? And then how the trace table would look. At the moment I have:
x < = 1
arrlength <= 4
while x < arrlength
Print "Time" + x
Print time(x)
x + 1
End while
x
arrlength
output
1
4
Time1 time1
2
4
Time2 time2
3
4
Time3 time3
4
4
-
(time is an array where x will be the position in array ie. time1, time2 etc.)
I think the logic is there, but another pair of eyes will help my tired brain. Any major issues?
Also, are there any good Pseudocode examples (possibly with trace tables) that anyone is happy to share?
Regards,
John Wilkie
[http://www.lavalla.vic.edu.au/Images/lavalla-logo.jpg] <http://www.lavalla.vic.edu.au>
John Wilkie
T (03) 5174 8111
John.Wilkie at lavalla.vic.edu.au<mailto:John.Wilkie at lavalla.vic.edu.au>
www.lavalla.vic.edu.au
________________________________
This message may contain confidential and/or privileged information. If you have received this message in error, please notify the sender immediately by replying to this email and then delete the email from your system. Any views expressed in this message are those of the individual sender and not necessarily those of Lavalla Catholic College. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20170227/6a289c6d/attachment-0001.html
More information about the sofdev
mailing list