Friday, October 9, 2015

Chapter 2 Creating Applications with Visual Basic

2.5 Displaying User Messages

40301
Write a statement that displays Hello World in a MessageBox

MessageBox.Show("Hello World")

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

MessageBox.Show("Hello, world")
 
40004
Write a complete Main  method that prints Hello, world to the screen.
 
Public Sub Main
    console.writeline("Hello, world")
   
End Sub
 
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.  
 
Public Sub Main()
    console.writeline("Gershwin + "," + " " + George")
   
End Sub

No comments:

Post a Comment