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

Policy: Please answer the following questions in a single post. Number your answ

ID: 441213 • Letter: P

Question

Policy: Please answer the following questions in a single post. Number your answers (e.g. Ans1, Ans 2 etc.) so that I know which answer belongs to which question. A single comprehensive post answering all the questions is sufficient. But I strongly encourage the students to read the all posts made by the other students so that you can learn from them and also see my comments in these posts. It will help if you access these posts at least every other day to see if you any student, or I made given any tips. Learning from these conference posts will also help you with home work and projects. Please provide a single comprehensive answer to the questions below and number your answers as Ans1 a, Ans 1b, Ans 2 etc. Q 1. Give an example on each one of them when it would be appropriate to use the following loop structures: a. pre-test b. post-test c. for-end d. counter controlled e. while-end f. repeat-until Q 2. What happens in an infinite loop? Why is this not a good thing? Can you think of any applications that it might be a desired result?

Explanation / Answer

Ans 1a. when you want to run loop zero or more times while(positive