VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00C0FFFF&
   Caption         =   "Бросание тела"
   ClientHeight    =   4800
   ClientLeft      =   3570
   ClientTop       =   1605
   ClientWidth     =   5820
   DrawWidth       =   5
   BeginProperty Font 
      Name            =   "MS Sans Serif"
      Size            =   9.75
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   84.667
   ScaleMode       =   6  'Millimeter
   ScaleWidth      =   102.658
   Begin VB.TextBox txtV0 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   720
      TabIndex        =   3
      Top             =   120
      Width           =   732
   End
   Begin VB.PictureBox pic1 
      BackColor       =   &H00FFFFFF&
      DrawWidth       =   3
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3252
      Left            =   120
      ScaleHeight     =   3195
      ScaleWidth      =   5475
      TabIndex        =   2
      Top             =   1320
      Width           =   5532
   End
   Begin VB.CommandButton CmdCalc 
      Caption         =   "Бросок"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   612
      Left            =   2760
      TabIndex        =   1
      Top             =   360
      Width           =   1212
   End
   Begin VB.TextBox txtH0 
      Alignment       =   1  'Right Justify
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   720
      TabIndex        =   0
      Top             =   720
      Width           =   732
   End
   Begin VB.Label lbl2 
      BackColor       =   &H00FFFFFF&
      Caption         =   "м"
      Height          =   372
      Left            =   1560
      TabIndex        =   7
      Top             =   720
      Width           =   612
   End
   Begin VB.Label lbl1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "м/с"
      Height          =   372
      Left            =   1560
      TabIndex        =   6
      Top             =   120
      Width           =   492
   End
   Begin VB.Label lblH 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Ho"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   120
      TabIndex        =   5
      Top             =   720
      Width           =   492
   End
   Begin VB.Label lblV0 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Vо"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   120
      TabIndex        =   4
      Top             =   120
      Width           =   492
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const G As Single = 9.81
Dim V0, H0, T, Y As Double
 Private Sub CmdCalc_Click()
'Ввод начальных значений
V0 = Val(txtV0.Text)
H0 = Val(txtH0.Text)
'Построение графика
For T = 0 To 4 Step 0.1
Y = H0 + V0 * T - G * T * T / 2
pic1.Scale (0, 40)-(4, -2)
pic1.PSet (T, Y)
Next T
'Ось X
pic1.Line (0, 0)-(4, 0)
For I = 0 To 4 Step 0.5
pic1.PSet (I, 0)
pic1.Print I
Next I
'Ось Y
pic1.Line (0, -5)-(0, 40)
For I = -5 To 40 Step 5
pic1.PSet (0, I)
pic1.Print I
Next I
End Sub

