Sample Payroll Calculation Program

1. There is a stationary business in your neighbourhood
which has 2 casual workers who work a given number
of hours each in a week are being paid at an hourly
rate. The company has a full-time staff, who has a
daily salary which accumulates into a monthly salary.
Workers may have company loans and other
deductions such as salary advances.
Write a small C++ program which does the following:
(a) Allows the user to enter the type of the worker;
(b) If the worker type is casual, the program should
ask the user to enter the hourly wage, the total
number of hours worked and all the deductions
to be made on the worker’s total wage;
(c) If the worker type is full-time, the program
should ask the user to enter the daily salary,
the number of days worked in the given month
and all the deductions to be made on the
worker’s salary in that current month;
(d) Compute the payroll for this small business.
i need aid don't have aclue
This is not a homework service.
Since the instructions are clear, I assume it's C++ you don't have a clue about.
In that case, you better start learning it.
http://www.cplusplus.com/doc/tutorial/
> i need aid don't have a clue

Do it step by step. First, write a small program to do just this much:

(a) Allow the user to enter the type of the worker
(b) Print out whether the type of the worker is casual or full-time.

Once you have done that much, move on to the next step.

If you have trouble with any of the steps, ask a question along with the code written so far.
Topic archived. No new replies allowed.