Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Qw.eher? (10%) your are provided with the following function to color a triangle

ID: 3870370 • Letter: Q

Question

Qw.eher? (10%) your are provided with the following function to color a triangle iseci. J, k, color, will paint the triangle made out of 1, j and k indices with the following triangle with color he elr, enter paint c4. 5, 6, red) was used to color red (NNote that you will not ee color as red on paper due to BW 5 Write pseudo code to color nd blue color (eg. indi 1 t Tiangle with indices 1, 2, 3 is red and triangle with indices 2, such a triangle strip with n vertices with alternating red d 4 is bue, etc). Your should pass n as a parameter Do NOT WRITE JAVA CODE. PSEUDO CODE ONLY!

Explanation / Answer

Pseudocode to color a triangle strip with n vertices with alternating red and blue color using the function paint(i,j,k,color).

paint(i,j,k,color) paints the triangle made out of i,j,k indices with the color "color".

paintTriangleStrip(n) // n is the total number of vertices in the triangle strip