1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

VB Help

Discussion in 'Software Development' started by bootsiebella, Apr 17, 2008.

Thread Status:
Not open for further replies.
  1. bootsiebella

    bootsiebella Thread Starter

    Mar 15, 2008
    Can anyone help me out with this please
    1.	Identify (describe) and correct the error(s) (copy and correct the code without changing the intent of the code) in each of the following: 	
    a.	Assume that the variable x is declared as Integer.
    For x = 100 To 1
    	lblOutput.Text = “X equals ” & x
    b.	The following code should print whether the Integer variable’s value is odd or even: 
    Select (value Mod 2)
    	Case 0
    		lblOutput.Text = “Even integer”
    	Case 1
    		lblOutput.Text = “Odd integer”
    Select End
    c.	The following should output the odd Integers from 19 to 1:
    For (x = 19 To 1 Step 2)
    	lblOutput.Text = “X equals ” & x
    Next x
    d.	Assume that variables a, b, x, and j are declared as Integer.
    For j = 1 To 200
    	For j = 11 To 777 Step 11
    		x = a * b
    		lblOutput.Text = “X equals ” & x
    	Next j
    Next j
    e.	The following code should output the even Integers from 2 to 100:
    counter = 2
    Do Loop
    	counter = counter + 2
    	lblOutput.Text = “Counter equals ” & counter
    While counter < 100
  2. coderitr


    Oct 12, 2003
    Since this is clearly coursework, perhaps you could explain which portions you're having trouble with. I know the answers but to give them to you would be cheating.
  3. Zack Barresse

    Zack Barresse

    Jul 25, 2004
    Hi there,

    Yes, we could answer this, but I for one certainly won't. This is, as stated by coderitr, homework. You must have coursework with you. Look it up. I know it sounds harsh, but you're paying to learn, not to cheat. Learning this will be much better. Some hints? Sure. Try stepping through your code with real examples. You should soon see what is going on.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/704658

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice