VERSION 5.00 Begin VB.Form Form1 BackColor = &H00C0FFFF& Caption = "Form1" ClientHeight = 7845 ClientLeft = 60 ClientTop = 390 ClientWidth = 11025 LinkTopic = "Form1" ScaleHeight = 7845 ScaleWidth = 11025 StartUpPosition = 3 'Windows Default End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Form_Load() Show ZOrder (0) Scale (-0.5, 40)-(5.5, 0) SetFocus Cls Form1.CurrentY = 35 Print "Plot of `Leaky Tank " Print x = 0 u = 20 Print "Initial level = 0 " Print "Input U =20" k = 0.5 dt = 0.01 'Edit to try various values of steplength dt Do x = x + (-k * x + u) * dt 'This is the simulation t = t + dt PSet (t, x) 'This displays the result as dots Loop Until t > 5 End Sub