# OCR A Level: Decision 1 - Miscellaneous Algorithms [January 2012 Q6]

Computer Science Level 3

The function $$\text{INT}(C)$$ gives the largest integer that is less than or equal to C. For example: $$\text{INT}(4.8) = 4$$, $$\text{INT}(7) = 7$$, $$\text{INT}(0.8) = 0$$, $$\text{INT}(−0.8) = −1$$, $$\text{INT}(−2.4) = −3$$.

Consider the following algorithm:

$$(\text{i})$$ Apply the algorithm using the inputs $$A = 10$$ and $$B = 128$$. Record the values of $$A$$, $$B$$, $$C$$, $$D$$, $$E$$, and $$F$$ every time they change. Record the output each time line 60 is reached.

$$(\text{ii})$$ Show what happens when the input values are $$A = 10$$ and $$B = −13$$.

Input the sum of all values of $$F$$ outputted in part $$(\text{i})$$.

×