computer

posted by .

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 user works more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If the user is married, use a flat tax rate of 15%. If the user is single, use 22%, if divorced, use 23%, and if 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

Respond to this Question

First Name
School Subject
Your Answer

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. 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 …
  3. 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 …
  4. computer programming

    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. Logic and Design

    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 …
  6. 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 …
  7. 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 …
  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. programming

    Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding percentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, …
  10. Computer Programming

    Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding percentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, …

More Similar Questions