Thread: No attempt yet, please do this for me (non-urgent)

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Exclamation No attempt yet, please do this for me (non-urgent)

    Hi i am new to c programming. I am doing an assignment, but i am not understanding what i am suppose to do. It is due tomorrow. Could some one please show me what to do?

    Thanks in advance.


    QUESTION

    Create a program to calculate the salary of employees of a company. The first input should be the amount of employees within the company follow by each employee’s detail. Your inputs are the employee’s name, department (B – Business, C- Computer), employee code (P – principal, V – Vice principal, T- teacher) and hours work. Each person base salary and over time rate is within the table below. Note; all employees are to work at least 40 hours per month, any additional hours are seen as overtime hours.

    Employee Code Base Salary (monthly) Overtime Rate (hourly)
    Principal $500,000 Not eligible
    Vice-Principal $300,000 Not eligible
    Teacher $200,000 $3000

    You are required to display the following data: -
    (A.) Output each employee’s name and salary before and after 17.5% tax deduction. Your output should be displayed using the format below: -
    Name: - Timothy Samuel
    Position: - Principal
    Department: - Not Applicable
    Hours work: - Not Applicable
    Overtime Hours: - Not Applicable
    _______________________________
    Base Salary: - $500,000
    Overtime salary:- $0.00
    Salary before Tax: - $500,000
    Salary after Tax: - $412,500


    (B.) At the end of the program output the : -

    i. Number of employees in each department.
    ii. The teacher with the highest salary after tax
    iii. The teacher with the lowest salary after tax.
    iv. The average salary of all employees.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Read the forum guidelines and homework policy. We aren't going to do your homework for you, you have to do some work yourself. Give it your best shot, then post the code you have, in code tags, and ask specific questions on the problems you're having.

  3. #3
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    >_>

    These students are in college?
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ thread inside a class hang issue
    By diefast9 in forum C++ Programming
    Replies: 11
    Last Post: 10-21-2009, 07:18 AM
  2. Uninitialized in this function? - URGENT
    By Natta in forum C Programming
    Replies: 0
    Last Post: 09-26-2009, 12:41 AM
  3. Naming folders after the date - my futile attempt
    By shoobsie in forum C++ Programming
    Replies: 2
    Last Post: 06-24-2005, 09:50 AM
  4. switch - first attempt...
    By Nutka in forum C Programming
    Replies: 4
    Last Post: 10-04-2002, 09:58 PM