can someone help me with a homework question?
i know that is a huge long shot cause it's programming help over the net.....i'm gonna try to explain it the best i can...
if so...
i'm a second semester, first year programmer in college...so cut some slack if i sound stuipd?? haha, i'm gong for networkin' but i HAVE to take programming the first year for basic programming requirments and it's not going all that well...
i'm makin' a window's application that will calculate a pay check..it figurs out the CPP, Income Tax and Net Pay when you put in the hourly rate and hours worked.
we are using seperate funcions for each calculation (income tax, cpp..etc)
i've got everything done and working except for the net pay.
every time i try to put a formula in that it hink works it doesn't and give me that god **** blue underline!!!!!
here's my code:
Private Function GrossPay(ByVal snghoursworked As Single, ByVal sngrateofpay As Single) As Single
Dim sngtotal As Single
sngtotal = snghoursworked * sngrateofpay
Return sngtotal
End Function
Private Function CalcIncomeTax(ByVal snggrosspay As Single) As Single
Dim sngincometaxdeduct As Single
sngincometaxdeduct = snggrosspay * 0.2
Return sngincometaxdeduct
End Function
Private Function CalcCPP(ByVal snggrosspay As Single) As Single
Dim sngcppdeduct As Single
sngcppdeduct = snggrosspay * 0.1
Return sngcppdeduct
End Function
Private Function CalcNetPay(ByVal snggrosspay As Single, ByVal sngincometaxdeduct As Single, ByVal sngcppdeduct As Single, ByVal sngdisplaygrosspay As Single) As Single
sngdisplaygrosspay = snggrosspay - (sngincometaxdeduct + sngcppdeduct)
Return sngdisplaygrosspay
End Function
Private Sub btnCalcNetPay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcNetPay.Click
Dim sngGrossPay As Single
sngGrossPay = txtHoursWorked.Text * txtRateofPay.Text
lblGrossPay.Text = Convert.ToString(sngGrossPay)
lblIncomeTax.Text = Convert.ToString(CalcIncomeTax(sngGrossPay))
lblCPP.Text = Convert.ToString(CalcCPP(sngGrossPay))
lblNetPay.Text =
End Sub
End Class
???
forgot to mention option strict off