VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesti

by Andrew Valerio (2 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 30th September 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesting!

Rate Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesti



Dim r, h, V, P, D As Long
Dim ld, dl, nq, discard As Long
r = Val(Text1.Text)
h = Val(Text2.Text)
V = 3.14 * r ^ 2 * h
D = 540
P = V * D
discard = 54
ld = P / 2
dl = ld - discard
nq = dl / 0.2
Text3.Text = Str(nq)
 If Text1.Text = "" And Text2.Text = "" Then
  msgresult = MsgBox("Enter all data!", vbExclamation)
End If
End Sub


Download this snippet    Add to My Saved Code

Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesti Comments

No comments have been posted about Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesti. Why not be the first to post a comment about Calculate how many newspapers you can have from a tree with x diameter and x height. Very Interesti.

Post your comment

Subject:
Message:
0/1000 characters