Thread: compute the weekly pay for each employee and then total weekly salaries

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    3

    compute the weekly pay for each employee and then total weekly salaries

    Hey guys! Please help me to write this software is C++ . thanks
    --------
    A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 30 hours they work and "time-and-half"- 1.5 times their hourly wage - for overtime hours worked), commission workers (who receive 250$ plus 5.7 percent of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one type of item). Write a program to compute the weekly pay for each employee and then total weekly salaries. You don't know the number of the employees in advance. Each type of employee has its own pay code: Managers have code 1, hourly workers have code 2, commission workers have code 3and pieceworkers have code 4.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What have you tried?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    3
    I tried but difficult for me. Can you give some ideas ?
    Last edited by cpn; 12-06-2012 at 10:03 AM.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    what laserlight was getting at is that we want you to show us what you have tried. we're not just going to give you the answer. we need to know exactly which part is giving you trouble. if you don't know C++ because you haven't paid attention in class, then we really can't help you with that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [HELP] Program to compute for Employee's daily wage
    By Kipper DeVera in forum C++ Programming
    Replies: 2
    Last Post: 09-19-2011, 10:05 PM
  2. weekly wage calculator
    By brian75 in forum C++ Programming
    Replies: 17
    Last Post: 01-12-2010, 09:50 PM
  3. Average salaries for Programmers
    By Betta in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-16-2005, 05:53 AM
  4. my weekly schedule
    By ober in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-04-2002, 10:00 AM
  5. Weekly Programming Contest
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 04-09-2002, 10:52 PM

Tags for this Thread