# Logic and Design

posted by .

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

## Similar Questions

1. ### programing

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
2. ### CSI 115 Logic And Design

Hi I know you have got this same question ask to you a lot, but mine is for week 2 unstead of week 1. This week they want me to come up with and Create the Modular Design for the same subject as week 1, example underneath please. A …
3. ### devry

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
4. ### computer Programming

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours …
5. ### computer science

in visual logic 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 …
6. ### Programming C#

Write a program that prompts the user for a name, social security number, hourly pay rate , and the number of hours worked. - Gross pay defined as hourly pay rate time hours worked. - Federal withholding tax, defined 15% of the gross …
7. ### computer

You will need to design an application that will prompt a user for his or her hourly pay rate, hours worked, and whether he or she is single, married, divorced, or widowed. It will then calculate the user's gross and net pay. If the …
8. ### Programming with Eclipse

Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program …
9. ### Java Programming

I need to create a pseudocode for the follwing application: Write Java-like pseudocode to specify the logic for the following program application: Write an application that prompts an employee for an hourly pay rate and hours worked. …
10. ### Statistics

A survey asks adults to report their marital status. The sample space is S = {single, married, divorced, widowed} . Use set notation to represent the event the adult is not married. This is what I think is the answer Married = {single, …

More Similar Questions