Turn on thread page Beta
    • Thread Starter
    Offline

    2
    ReputationRep:
    Hi, doing as aqa comsci here, when you are filling out a trace table, when do you go onto a new row? E.g. in this question sometimes they change TEMP on the same line as they change A or B, then every time they change A or B they go onto a new row... (sorry about the bad attachments, I'm new to this place)
    Name:  as3.PNG
Views: 97
Size:  33.5 KBAttachment 537159537161
    Attached Images
      
    Offline

    3
    ReputationRep:
    (Original post by HazNut134)
    Hi, doing as aqa comsci here, when you are filling out a trace table, when do you go onto a new row? E.g. in this question sometimes they change TEMP on the same line as they change A or B, then every time they change A or B they go onto a new row... (sorry about the bad attachments, I'm new to this place)
    Name:  as3.PNG
Views: 97
Size:  33.5 KBAttachment 537159537161
    For almost all cases you should begin a new line when a variable is reassigned. or the loop begins again. For example if you had, for some algorithm

    1|a=c
    2|b=40+a
    3|a=b+c+10

    then you would begin a new line for the third line as you must show a having a new value
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: May 25, 2016
Poll
Do you think parents should charge rent?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.