You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run:

(No overtime example)
Enter hourly pay rate:
10.00
Enter hours worked:
35
Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed:
M
Gross pay is $350.00
Net pay is $297.50

(Overtime example)
Enter hourly pay rate:
10.00
Enter hours worked:
45
Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed:
S
Regular pay is $400.00
Overtime pay is $75.00
Gross pay is $475.00
Net pay is $370.50

To design the application to calculate a user's gross and net pay based on their hourly pay rate, hours worked, and marital status, you can follow these steps:

1. Prompt the user to enter their hourly pay rate. You can use a simple input statement to ask for this information and store it in a variable.

2. Prompt the user to enter the number of hours worked. Use another input statement to gather this information and store it in a variable.

3. Ask the user to select their marital status by entering a letter corresponding to one of the options: (M)arried, (S)ingle, (D)ivorced, or (W)idowed. Use another input statement to get this information and store it in a variable.

4. Use conditional statements (if-else or switch) to calculate the gross pay. The regular pay for hours worked up to 40 is the hourly pay rate multiplied by the number of hours worked. For overtime hours worked beyond 40, the rate is 1.5 times the hourly pay rate. Calculate both the regular and overtime pay separately.

5. Calculate the total gross pay by adding the regular pay and overtime pay together. Store this value in a variable.

6. Use another set of conditional statements to calculate the net pay based on the user's marital status. Apply the appropriate tax rates as indicated: 15% for married, 22% for single, 23% for divorced, and 13% for widowed. Calculate the net pay by subtracting the appropriate proportion of the tax rate from the total gross pay.

7. Display the calculated gross pay and net pay to the user. Format the values as desired using the appropriate formatting functions or methods in your programming language.

By following these steps, you should be able to design an application that prompts the user for their hourly pay rate, hours worked, and marital status, and then calculates their gross and net pay accordingly.