Hi

I've just started a computer course and am fairly new to VB.

My lecturer dumped this on me out of the blue, I'm not so strong at this (theory, written work) as just making, designing and testing projects. This is the sort of thing I struggle with. Any help, with answers and/or explanations will be welcome. Here is the evil problem in question:
(1)For each of the lines (A) – (E) give a condition showing when the outcome of the fragment is assigned by that line
(2)produce outcome table
(3) Make a equivalent fragment involving a single case statement of the form “if……then….else”
(4)Make a equivalent fragment involving a single case statement with five ifs

Code:
Case
	If q then case
		If p then x:=x+1				(A)
		else x:=x+2					(B)
		end-case
else case
		if r then case
			if p then x:=x+1			(C) 
			 else x:=x+2				(D)
			end-case
		else x:=x+2					(E)
end-case
end-case


Any help, any at all! (lol) will be welcome.

Thanks