Programming Project

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 1
Reputation: KEO is an unknown quantity at this point 
Solved Threads: 0
KEO KEO is offline Offline
Newbie Poster

Programming Project

 
0
  #1
Nov 5th, 2004
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??
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC