# 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})\).**

###### There are **4** marks available for part (i) and **5** marks for part (ii).

###### In total, this question is worth **12.5%** of all available marks in the paper.

###### This is part of the set OCR A Level Problems.

**Your answer seems reasonable.**Find out if you're right!

**That seems reasonable.**Find out if you're right!

Already have an account? Log in here.