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

  1. A main class that implement the logic of the program – name this class TestEmployee
  2. 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
  3. Your Employee class should have a constructor that initialize the instance variables.
  4. Provide a property with a get and a set accessor for any instance variables.
  5. The program only stop when the user enter : Stop or Alt

Hi and welcome to DaniWeb!

Here at DaniWeb, we won't just do your homework for you, but we will help walk you through figuring out any questions you have or where you're stuck.

Can you please show us the code you have so far and where you're stuck? Or are you having problems coming up with the algorithm? If so, why don't you show us some pseudocode you have written as the first step to coding something like this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.