Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design a VB.NET project that determines the income tax rate based on the employe

ID: 3625928 • Letter: D

Question

Design a VB.NET project that determines the income tax rate based on the employee's salary. The program should let the user enter the salary in a TextBox ,followed by a click on a Button. The program should then compute and display the applied tax, based on the following break down. Assume that the tax rate for salaries higher than 350,000 is 25%, the tax rate for salaries between 100,000 and 200,000 is 15%, and for anything below 100,000 is 10%. Use a Select Case statement to determine the applied tax for a given employee.

Explanation / Answer

you didn't provide a tax rate for the range between 200000 and 350000 so you can add a "case else" for that situation but I just left it as is.


Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim salary As Double = CInt(TextBox1.Text)  
Select Case salary
Case Is < 100000
TextBox2.Text = "Tax rate 10%" & "Applied Tax: " & CStr(salary * 0.1)
Case 100000 To 200000
TextBox2.Text = "Tax rate 15%" & "Applied Tax: " & CStr(salary * 0.15)
Case Is > 350000
TextBox2.Text = "Tax rate 25%" & "Applied Tax: " & CStr(salary * 0.25)
End Select

End Sub
End Class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote