- Joined
- Oct 20, 2009
- Messages
- 2,873 (0.54/day)
- Location
- Corpus Christi, Texas
System Name | FumoffuFumoffu |
---|---|
Processor | Intel i7 4770K |
Motherboard | Gigabyte Z87X -UD3H |
Cooling | Corsair H100i |
Memory | 16GB DDR3 1600 Crucial Ballistix |
Video Card(s) | Sapphire AMD Radeon HD 7970 OC |
Storage | 1- WD 500GB 1- Samsung F2 1.5TB 1- Crucial M4 128GB SSD 1-256GB ADATA XPG SX900 ASX900S3 SSD |
Display(s) | Hanns-G HZ281HPB 27.5'' 3ms Full HD 1920x1200 WideScreen LCD Monitor |
Case | Corsair Graphite Series 600T |
Audio Device(s) | Creative Soundblaster X-Fi Titanium |
Power Supply | Corsair HX 750W Gold |
Software | Windows 7 Pro x64 |
Hey guys,
I have this VB2010 assignment I have to do by sunday.
I need help writing a Visual Basic program that calculates the area and circumference of a hot tub once I enter the inches and feet.
The professor left us with this clue:
and
We have not covered this information yet so I am stumped. I have no clue where to start.
The instructions for the program state that the application computes the area and circumference of a hot tub by entering the diameter in feet and inches. The area and circumference should go out to 2 decimal places. You should be able to clear the entry, enter a new diameter and exit the form.
I have been trying to do this assignment all week. I am not a programmer. My ASS degree requires I take a programming class.
This is what I have so far. I taught myself Qbasic back in the day but this is definately not QB any more.
I have this VB2010 assignment I have to do by sunday.
I need help writing a Visual Basic program that calculates the area and circumference of a hot tub once I enter the inches and feet.
The professor left us with this clue:
and
We have not covered this information yet so I am stumped. I have no clue where to start.
The instructions for the program state that the application computes the area and circumference of a hot tub by entering the diameter in feet and inches. The area and circumference should go out to 2 decimal places. You should be able to clear the entry, enter a new diameter and exit the form.
I have been trying to do this assignment all week. I am not a programmer. My ASS degree requires I take a programming class.
This is what I have so far. I taught myself Qbasic back in the day but this is definately not QB any more.
Public Class frmHotTubCalc
Const diameter As Integer = (feet * 12) + inches
Const radius As Integer = diameter \ 2
Const feet As Integer = CInt(dimension(0))
Const inches As Integer = CInt(dimension(1)("in"))
Const CircFeet As Integer = CInt((diameter * Math.PI) / 12)
Const CircInches As Integer = CInt((diameter * Math.PI) Mod 12)
Private Sub btnExit_Click(sender As System.Object, e As System.EventArgs) Handles btnExit.Click
Close()
End Sub
Private Sub frmHotTubCalc_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub btnClear_Click(sender As System.Object, e As System.EventArgs) Handles btnClear.Click
txtFeet.Clear()
txtInches.Clear()
txtFeet.Focus()
lblAreaFinal.Text = ""
lblCircFinal.Text = ""
End Sub
Private Sub btnCalc_Click(sender As System.Object, e As System.EventArgs) Handles btnCalc.Click
Dim strFeet As String
Dim strInches As String
Dim intFeet As Integer
Dim intInches As Integer
End Sub
End Class