Ex 1) Trace the following flowchart for when input is 9 and complete the trace table. Also, write pre- post- conditions for this flowchart. start num prime-true | de2 prime true and ds num/2 prime true num prime doutput num mod d 0 "is not prime" num, "is prime prime false end ded+1 Ex 2) Trace the following flowchart for when input values are 12, 3, 3, 6, 11, 14, 1, 1, and complete the trace table. Also, write pre- post-conditions for this flowchart start sum1 0 sum2 0 sum1 sum2 num output F is4 iei+ num sum1 sum1 +num i1 is4 ii+1 sum1 sum2 IT 'yes no num sum2 sum2 +num end Show transcribed image text Ex 1) Trace the following flowchart for when input is 9 and complete the trace table. Also, write pre- post- conditions for this flowchart. start num prime-true | de2 prime true and ds num/2 prime true num prime doutput num mod d 0 "is not prime" num, "is prime prime false end ded+1 Ex 2) Trace the following flowchart for when input values are 12, 3, 3, 6, 11, 14, 1, 1, and complete the trace table. Also, write pre- post-conditions for this flowchart start sum1 0 sum2 0 sum1 sum2 num output F is4 iei+ num sum1 sum1 +num i1 is4 ii+1 sum1 sum2 IT 'yes no num sum2 sum2 +num end