Professional Documents
Culture Documents
Codes
Codes
Text)
txtRoot2.Text = " "
Private Sub cmdClear_Click() End If If x > 100 Then
txtRoot1.Text = " " End Sub A = x * 53.1
txtRoot2.Text = " " lblAmountP.Caption = A
txtCoefA.Text = " "
txtCoefB.Text = " " ElseIf x < 100 Then
txtCoefC.Text = " " B = x * 52.5
txtNoRoots.Text = " " lblAmountP.Caption = B
End Sub
Else: x = 100
Private Sub cmdExit_Click() C = x * 53.1
Activity11.Hide lblAmountP.Caption = C
frmMenu.Show
End Sub End If
End Sub
Private Sub cmdSolve_Click()
Dim A, B, C, Roots As Double
A = Val(txtCoefA.Text)
B = Val(txtCoefB.Text)
C = Val(txtCoefC.Text)
disc = (B ^ 2) - (4 * A * C)
If disc > 0 Then Activity 12. Money Exchange
txtNoRoots.Text = " 2 "
root1 = (-B + Sqr(disc)) / (2 * A) Private Sub cmdClear_Click()
root2 = (-B - Sqr(disc)) / (2 * A) txtAmountD.Text = " "
txtRoot1.Text = Round(root1, lblAmountP.Caption = " "
2)
txtRoot2.Text = Round(root2,
End Sub
2)
Option Explicit
End Sub
Dim Times As Integer
Dim Sum As Integer
Private Sub cmdExit_Click()
Dim Num As Integer
Activity13.Hide
Private Sub cmdEnter_Click()
frmMenu.Show
Sum = 0
txtPW.Text = " " tmrGo.Enabled = True
txtUser.SetFocus End Sub
Else
lblLoad.Caption = "Projects
Loaded Successfully"
tmrGo.Enabled = False
'ElseIf txtUser.Text =
"Jayzn2194" And txtPW.Text =
"Rockstar2194" Then
'lblMsg1.Caption = "ACCESS"
'lblMsg2.Caption = "GRANTED"