所以我正在制作一个程序,用户输入他的姓名、工作时间、他的工资率和点击次数。然后它将退还以下税款:
总工资 - 税前支付。
FICA - 总工资的 8%。
FTW - 通过将总工资乘以 20% 计算得出。
州所得税 - 工资总额的 2%。
净工资 - 税后总工资。
我试过这个,但它不适合我。Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 处理 cmdSubmit.Click
Dim add, add2, add3, add4 As Integer
add = Val(txtPrice1.Text)
add2 = Val(txtPrice2.Text)
add3 = Val(txtPrice3.Text)
add4 = Val(txtPrice4.Text)
lblTest.Text = Format(add + add2 + add3 + add4, "currency")
lblTest2.Text = Format(lblTest.Text * 0.06 + lblTest.Text, "currency")
End Sub
我知道你会使用 .txt 和 Val,但我对如何编程感到困惑。