CIS 115 Logic and Design Week 5 Quiz Answers (2018)

CIS 115 Logic and Design Week 5 Quiz Answers (2018)


BUY HERE

(TCO 5) Which piece of pseudocode represents updating the loop control variable?
(TCO 5) What (if anything) is wrong with the following loop?
            int x = 1;
            while (x <10)
            {
                Console.WriteLine(x);
            }
(TCO 5) Your program asks the user to enter a number between 5 and 10. Which is the correct condition for the following validation loop?
            int num;
            Console.Write("Please enter a number between 5 and 10:");
            num = Convert.ToInt32(Console.ReadLine());
            while (_______________________________)
            {
                Console.WriteLine("invalid, please reenter a number between 5 and 10: ");
                num = Convert.ToInt32(Console.ReadLine());
            }
(TCOs 5 and 8) Which of the following psuedocode loops will print the integers from 50 to 100, counting by 5s.
(TCOs 5 and 8) Write the pseudocode for the flowchart below, and list what the output will be.

Comments