Results 1 to 4 of 4

Thread: I don't understand the question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    72

    Angry I don't understand the question





    I have a program that is suppose to give out an empolyees income and tax deductions

    - to calculate the taxes
    1)Local tax is 1.15% of the first $45,000 earned.
    2)Federal tax withheld is computed by taking gross pay per pay period minus $15.00 for each dependent time 10% of yearly income projected to be between $0-$20,000, 20% of yearly income projected to be between $20,000-$40,000, and 30% of yearly income progected to be over $40,000.
    3)State tax withheld is 5% of projected income between 0-$30,000, and 10% over $30,000.
    4)Over-time is computed as time-and-a-half over 40 hours per week.

    the output should look like this
    Employee: Hector Giron
    Hours worked: 55.50
    Hourly rate: $14.50
    Gross Wages $917.13

    Current | yr. to date
    Federal $61.64 | $6271.64
    State $91.71 | $2254.71
    Local $2.50 | $517.50
    Total Deductions $355.85
    Net Pay $561.28


    According to the question the employee's local tax is $2.50. But When I calculate the local tax the answer is different.
    This is how I do it.
    14.50 * 55.50 = 804.75 * 0.0115 (1.15%)=9.254625 and not $2.50

    Can anyone explain to me how they calculated these numbers.?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: I don't understand the question

    show us your code
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: I don't understand the question

    And who is "they"?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: I don't understand the question

    reads like an exercise in a book... I'm not sure how they arrived at 2.5 either.... but just so you know... while this is right: 14.50 * 55.50 = 804.75 ... it doesn't match the gross income either ... it needs to be (14.50 * 40) + (21.75 * 15.5) ...the first calculation is straight time, the second is the overtime. Which gives the correct Gross Pay result of 917.13. Still don't see how 2.50 is calculated... even after the exemptions are taken out.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width