1 / 11

Algorithms

Algorithms. Programming – step by step instructions to a computer. Controls. Events. Variables. Integer Double (floating pt.) Char String Boolean. User Input. Input into a TextBox: TextBox1.Text … contains a String, or a number Click on a Button Private Sub Command1_Click()

hyatt-rice
Download Presentation

Algorithms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Algorithms Programming – step by step instructions to a computer

  2. Controls

  3. Events

  4. Variables Integer Double (floating pt.) Char String Boolean

  5. User Input Input into a TextBox: TextBox1.Text … contains a String, or a number Click on a Button Private Sub Command1_Click() …put code here to handle clicks End Sub

  6. User Output A MsgBox Private Sub Command1_Click() MsgBox ("Hello") End Sub

  7. Iteration 1 Integer X = 0 While X < 1000 … do something X = X+1 Wend

  8. Iteration 2 For X = 1 to 1000 … do something Next X

  9. Conditionals if ( X > 10 ) then Y = 0 else if (X < 5) Y = 10000000 else Y = 12 End if

  10. Booleans conditions If TextBox1.Text = “Open” AND TextBox2.Text <> “Quit” then …

  11. functions Rnd() Sqr( any number ) IsNumeric( any variable ) Int( any floating pt number )

More Related