KEO 0 Newbie Poster

hi my name is KEO and i need help with my programming project my project states that to write a program that requests taxable income and calculates federal income tax. Use sub procedure for the input and a fucnction for procedure to calculate the tax. they given me a table ...
taxable income over| But Not OVER | Your Tax is 15% |Of Amount Over

------------------------------------------------------------------
$0 | $27,050 | $4,057.50+27.5% | $0
$27,050 | $65,550 | $14,645.00+30.5% | $27,050
$65,550 | $136,750 |$36,361.00+35.5% |$65,550
$136,750 | $297,350 |$93,374.00+39.1% |$136,750
$297,350 |$297,350

and i am lost so far this is what i wrote
#Region "01 Federal income tax"


Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim TaxableInc, tax, percent, amountover, func As Double
Select Case TaxableInc
Case 0 To 27050
tax = 0
percent = 0.15
amountover = TaxableInc - 0
Case 27051 To 65550
tax = 0
percent = 27.5
amountover = TaxableInc - 0

Case 65551 To 136750
tax = 0
percent = 30.5
amountover = TaxableInc - 0
Case 136751 To 297350

tax = 0
percent = 35.5
amountover = TaxableInc - 0
Case 297351


tax = 0
percent = 39.1
amountover = TaxableInc - 0
End Select
function fuc(byval as func as double)


End Sub
#End Region


I need help with finishing the select case block and do tax always should be set to 0 in the select case block and i need help with setting up the function. also should i have an input statement beacuse it is requesting for the taxable income??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.