[Year 12 Its] NS Diagram

Kevork Krozian kevork at edulists.com.au
Tue Oct 11 16:58:26 EST 2005


Hi Ounsane,

 Before the loop: A = 6, B =6 , Count = undefined
  Iteration 1: Count =1, A= 5, B =11
  Iteration 2: Count =2, A=3, B= 14
  Iteration 3: Count =3, A=0, B=14

 Output of A and B will be 0 and 14

Kevork Krozian
Mailing List Creator and Administrator
kevork at edulists.com.au
www.edulists.com.au
Tel: 0419 356 034
----- Original Message ----- 
From: <osi at gec.vic.edu.au>
To: <is at edulists.com.au>
Sent: Tuesday, October 11, 2005 4:21 PM
Subject: [Year 12 Its] NS Diagram


> Hi All,
>
> 2004 Exam, Question 9 Section A.
>
> A = 6
> B = 6
>
> FOR COUNT 1 TO 3
> A= A-COUNT
> B= B+A
>
> What is the value of A & B? I just want to make sure my trace table is 
> correct.
>
> Thanks,
>
> Ounsane
> ---
> osi at gec.vic.edu.au
> http://www.gec.vic.edu.au/
> _______________________________________________
> http://www.edulists.com.au
> IT Systems Mailing List kindly supported by
> http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority 
> and
> http://www.vitta.org.au  - VITTA Victorian Information Technology Teachers 
> Association Inc
> 



More information about the is mailing list