' Mr. Minich ' Period 1 ' Ch2Demo1 ' 9/14/2000 ' Purpose - This program demonstrates the use of the Form_Activate event and the Print method ' of a form. It also demonstrates the use of a semicolon and empty Print statements.
Option Explicit Private Sub Form_Activate() ' displays average marathon pace for Bill Rodgers Form1.Print "Welcome to the Running Calculator Program" Form1.Print Form1.Print "The great runner, Bill Rodgers, won his first " Form1.Print "Boston Marathon in 1975 with a time of " Form1.Print "approximately 2 hours and 9 mins." Form1.Print Form1.Print "Since a marathon is 26.2 miles, "; ' notice the semicolon Form1.Print "his average mile pace was " Form1.Print "4.92 mins/mile." Form1.Print Form1.Print "4.92 mins/mile is equivalent to " Form1.Print "4 mins and 55 seconds per mile." Form1.Print Form1.Print "The "; ' notice the semicolon Form1.Print "End" End Sub ' 1. What is the name of an object cited in the code above?
' 2. What is a method that is used?
' 3. What is an event that is used? ' 4. Show the output exactly as it would be displayed when this program executes.