In the following Algorithm segments, indicate whether or not the loop will terminate. If it will not, why not? Assume it is all integer variables. counter <-- 0 total <-- α DOWHILE counter >= α total <-- total + 2 ENDDO b) total <-- 0 index <-- 1 REPEAT total <-- total +1 index <-- index + 1 UNTIL index = 10 c) counter <--- 0 total <--- 0 DOWHILE counter < = 10 total <-- total + 2 counter <-- counter + 1 ENDDO 2. Express the following as a nested IF structure using only simple conditions. IF a < b AND C != D AND (B > D OR B = D) THEN S1 ---Where S1 is a staement. 4. Find the sum of a square in the range of 1 to 12. The output should be displayed in the form of a table which shows the integer vlaue and it's square on the same line. The sum is then to be displayed below a header which says: "Tutorial X: Sum of Squares from 1 to 12". Write your algorithm either using psuedocode or a flowchart.