0% found this document useful (0 votes)
24 views2 pages

Dim As Double Dim As Double

The document declares 16 double variables to store values from text boxes and performs calculations. It calculates the areas of 3 shapes and stores them in Area1, Area2, and Area3 variables. It then calculates the total area AreaT by summing the 3 individual areas. Finally, it displays the total area in a 17th text box.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Dim As Double Dim As Double

The document declares 16 double variables to store values from text boxes and performs calculations. It calculates the areas of 3 shapes and stores them in Area1, Area2, and Area3 variables. It then calculates the total area AreaT by summing the 3 individual areas. Finally, it displays the total area in a 17th text box.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Dim a, b, c, d, i, s, t, x, y, z, m, n, o, p, q, w As Double

Dim Area1, Area2, Area3, AreaT As Double


a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
d = TextBox4.Text
i = TextBox5.Text
s = TextBox6.Text
t = TextBox7.Text
x = TextBox8.Text
y = TextBox9.Text
z = TextBox10.Text
m = TextBox11.Text
n = TextBox12.Text
o = TextBox13.Text
p = TextBox14.Text
q = TextBox15.Text
w = TextBox16.Text
Area1 = ((a * b) / 2) * Math.Sin(y)
Area2 = ((b * Math.Cos(z) + a * Math.Cos(x)) * (c * Math.Cos(n) +
d * Math.Cos(p)) / 2) * Math.Sin(m)
Area3 = ((c * d) / 2) * Math.Sin(o)
AreaT = Area1 + Area2 + Area3
TextBox17.Text = AreaT

You might also like