Jul 28
Zack G asked:


1.Identify (describe) and correct errors (the copy and correct the code without changing the intent of the code) in each of the following: a.Assume that the x variable is declared as integer. For x = 100 to 1 the lblOutput.Text = &? of? the peers of â? X? of â, x The following code should print b.The if the value of? s of? variableâ the integer is odd or even: Select (MOD 2 value) Case 0 lblOutput.Text =?? of? of the integerâ? of? of A even Case 1 lblOutput.Text =?? odd? of the integerâ? of? the â Select the end what follows should c.The to output the odd integers from 19 to 1: For (x = 19 to 1 step 2) the lblOutput.Text = &? of? the peers of â? X? of â, x X Next d.Assume that the variables a, b, x, j are declared as integer. For j = 1 to 200 For j = 11 777 to step 11 x = a * b the lblOutput.Text = &? of? the peers of â? X? of â, x J Next J Next The following code should go e.The even integers from 2 to 100: counter = 2 Place counter = counter + 2 lblOutput.Text = the counter? of? to equate the & of? of? of â; counter While
Tags: , , , , , ,