help me please my boy friend thinks im a 'dumb bird' and couldnt write in 'c' ok maybe he is write but will look like a fool!!! sum1 pls help b4 he gets home????
Translate the following pseudocode into a working c programme?
begin
read port 0 and set its value to a varrible k:
while k <0fh DO
turn channel 8 on and off continuously
write the value of k into port2
end while;
if channel2 is on and channel5 is off THEN
Repeat;
read channel 25 and writes its value in2 port 2;
insert delay if necessary;
while channel 0 is ON DO
turn on and off alll even channels 1 from left to right
insert delay if necessary;
end while;
untill channel 6 is on;
else
read channel 3 of a/d converter;
if data read from a/d is less than 55h then exit;
else
print the message greater than 55h on the screen;
end;