can you please help me with an assignment, im struggling to get the correct coding of the below.
Question 2
Write a class that accepts a user’s hourly rate of pay and the number of hours worked. Display the
user’s gross pay, the withholding tax (15% of gross pay), and the net pay (gross pay – withholding).
Save the class as Payroll.cs. As illustrated below.
Program Structure
- A main class that implement the logic of the program – name this class TestEmployee
- Add a class named Employee to the main class that include three pieces of information as either
instance variable: - First Name, hourly rate, numbers of hours worked, net pay and gross pay - Your Employee class should have a constructor that initialize the instance variables.
- Provide a property with a get and a set accessor for any instance variables.
- The program only stop when the user enter : Stop or Alt