Monday, February 10, 2014

Section 3.3: Input and Output: Displaying Strings Literals




40003:  Write a statement that displays Hello, world to a message box.

MessageBox.Show("Hello, world")

40301:  Write a statement that displays Hello World in a MessageBox.

MessageBox.Show("Hello World")

40004:  Write a complete Main method that prints Hello, world to the screen.

Answer Coming Soon!

40005:  Suppose your name was Alan Turing.  Write a statement that would display your last name, followed by a comma, followed by a space and your first name in a MessageBox.

MessageBox.Show("Turing, Alan")

40006:  Suppose your name was George Gershwin.  Write a complete main method that would print your last name, followed by a comma, followed by a space and your first name.

Answer Coming Soon!

2 comments:

  1. 40004: Write a complete Main method that prints Hello, world to the screen.

    Public shared sub main ()
    console.writeline("Hello, world")
    end sub

    ReplyDelete
  2. 40006: Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, followed by a space and your first name.


    Public shared sub main ()
    console.writeline("Gershwin, George")
    end sub

    ReplyDelete