Tuesday
May 21, 2013

Homework Help: Logic and Design

Posted by Harvey on Tuesday, May 17, 2011 at 8:01pm.

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

No one has answered this question yet.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

computer science - in visual logic You will need to design an application that ...
computer - You will need to design an application that will prompt a user for ...
Programming with Eclipse - Design, implement, test, and debug an application to ...
logic and design - You have been contracted by a local antique store to design ...
Program Logic Design - create a flowchart that shows the logic for a program ...
AIU - You are the lead human–computer interaction (HCI) engineer on a major...
CSI 115 Logic And Design - Hi I know you have got this same question ask to you ...
devry - A small startup software developer company needs to create a program ...
Logic and Design - I need help with pseudocode, and any help regarding forming ...
design - In an effort to promote a better understanding of what design is and ...

For Further Reading

Search
Members
Community