| | |
Programming Project
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2004
Posts: 1
Reputation:
Solved Threads: 0
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??
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??
![]() |
Similar Threads
- Final Year Project help!!! (Computer Science)
- New Programming Project (IT Professionals' Lounge)
- Novice at PHP programming + Final year project (PHP)
- Shell Programming Project (Shell Scripting)
- First complete project (Geeks' Lounge)
- Require feedback on programming idea. (Computer Science)
- Help for semaphores programming project .. (C)
Other Threads in the VB.NET Forum
- Previous Thread: Hiding dataitems in a combobox
- Next Thread: Need major help
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





