Assignment 1 Programming
Assignment 1 Programming
To be collected by class rep on Wed 17th July 2024 and submitted before 11am together with signed class list
of those who will have submitted.
2 Write an algorithm and draw a flowchart generate the value of x1 and x2 in the formulae below when
the value of a,b and c are provided [10 marks]
3. Compute the values of the following C expressions assuming that b, s, e, m and k are integer variables,
z and t are float variable as declared below.
i. z=b+k*z/m%e-1
ii. e % s * m > z || k % s * b < t
iii. (b < s) % s+1
iv. ++b && s--
v. m = --b? –e : ++e