.


:




:

































 

 

 

 





Option Strict On

Option Explicit On

Imports System.Math

Public Class Form1

Sub proc2()

z = (10 * (Log(y ^ 2) - (Abs(x - y)) ^ (1 / 4)) / (1 - (Cos(y)) ^ 3))

End Sub

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

 

' '

Dim x, y, a As Double

Dim i, j As Integer

Dim p As Single

Dim s1, s2 As String

 

' '

x = CDbl(Val(TextBox1.Text))

y = CDbl(Val(TextBox2.Text))

 

''

a = funtik(x, y)

i = CInt(a)

j = CInt(Fix(a))

p = CSng(a)

s1 = CStr(a)

s2 = CStr(p)

 

''

TextBox3.Text = CStr(a)

TextBox4.Text = CStr(i)

TextBox5.Text = CStr(j)

TextBox6.Text = CStr(Int(a))

TextBox7.Text = CStr(p)

TextBox8.Text = CStr(a + p)

TextBox9.Text = s1 + s2

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

''

TextBox1.Clear()

TextBox2.Clear()

TextBox3.Clear()

TextBox4.Clear()

TextBox5.Clear()

TextBox6.Clear()

TextBox7.Clear()

End Sub

 

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

''

Application.Exit()

End Sub

 

End Class

 

.

.

3.4, .

 

 

:

 

:

A = 2R * sin(alpha)

r , alpha , ; A a .

, :

- Function Sootn(), ;

- Function vvod() TextBox;

- Sub vivod() TextBox.

 

(Function Sub) . - Function . - Function - , , , Return. , () vvod() Function.

(PS()), , (vivod()), - Sub.

Option Explicit On

Imports System.Math

Public Class Form1

 

Function vvod(ByVal t As TextBox) As Double

Return CSng(Val(t.Text))

End Function

 

Sub vivod(ByVal z As Double, ByVal t As TextBox)

t.Text = CStr(z)

End Sub

Public Function Sootn(ByVal angle As Double, ByVal r As Double) As Double

Return CSng(Sin((angle * 180) / PI) * r * 2)

End Function

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim alpha, beta, gamma, radius As Double

Dim a, b, c As Double

alpha = vvod(TextBox1)

beta = vvod(TextBox2)

gamma = vvod(TextBox3)

radius = vvod(TextBox4)

If alpha + beta + gamma = 180 Then

a = (Sootn(alpha, radius))

b = (Sootn(beta, radius))

c = (Sootn(gamma, radius))

 

vivod(a, TextBox5)

vivod(b, TextBox6)

vivod(c, TextBox7)

Else

MsgBox(" ")

End If

End Sub

 

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

TextBox1.Clear()

TextBox2.Clear()

TextBox3.Clear()

TextBox4.Clear()

TextBox5.Clear()

TextBox6.Clear()

TextBox7.Clear()

End Sub

 

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

Application.Exit()

End Sub

 

End Class

 





:


: 2015-11-05; !; : 487 |


:

:

, .
==> ...

1511 - | 1342 -


© 2015-2024 lektsii.org - -

: 0.012 .