Write the following algorithms using pseudocode:

1. Calculate the net pay for an hourly employee. You will be given the name, pay rate and hours worked. You must calculate the state withholding (5%), federal withholding (18%), and Social Security (8%). You should display the net and gross pay rates, as well as each of the different taxes.

#9 In Related Questions below, (Programing C#)follow the link there.

To calculate the net pay for an hourly employee, you can use the following pseudocode algorithm:

```
START algorithm to calculate net pay for an hourly employee

DECLARE name AS string
DECLARE payRate AS number
DECLARE hoursWorked AS number
DECLARE stateTax AS number
DECLARE federalTax AS number
DECLARE socialSecurity AS number
DECLARE grossPay AS number
DECLARE netPay AS number

// Input
READ name
READ payRate
READ hoursWorked

// Calculate gross pay
SET grossPay = payRate * hoursWorked

// Calculate taxes
SET stateTax = 0.05 * grossPay
SET federalTax = 0.18 * grossPay
SET socialSecurity = 0.08 * grossPay

// Calculate net pay
SET netPay = grossPay - stateTax - federalTax - socialSecurity

// Output
DISPLAY "Name: ", name
DISPLAY "Gross pay: $", grossPay
DISPLAY "State withholding (5%): $", stateTax
DISPLAY "Federal withholding (18%): $", federalTax
DISPLAY "Social Security (8%): $", socialSecurity
DISPLAY "Net pay: $", netPay

END algorithm
```

This algorithm prompts the user for the employee's name, pay rate, and hours worked. It then calculates the gross pay by multiplying the pay rate with the hours worked. The algorithm then calculates the state withholding tax (5% of the gross pay), federal withholding tax (18% of the gross pay), and Social Security tax (8% of the gross pay). Finally, it calculates the net pay by subtracting the total taxes from the gross pay. The algorithm displays the employee's name, gross pay, each tax amount, and the net pay.