Hi , i m a beginner in C++ , and i am doing my assigment , i stuck when i want to process to the looping process ...
Here is my question ,
// A company pays its employees as managers, hourly workers, commission workers,
// or pieceworkers differently. Each worker has their own code: managers - M,
// hourly workers - H, commission workers - C, and pieceworkers - P.
// Managers receive their salary according to a fixed monthly amount entered
// by the user plus additional allowance based on the rate (in percentage) entered
// by the user. Hourly workers receive a fixed hourly wage for up to the
// first 40 hours they work - RM250.00 and 1.5 times their hourly wage for overtime
// hours worked. Commission workers receive RM250.00 plus a percentage from their
// gross weekly sales which is entered by the user.
// The pieceworkers receive a fixed amount of money per item for each of the
// items they produce. The user should enter the number of items produced and
// rate per item.
// Write a C++ program that displays options to the user either to calculate
// the salary of a manager, commission worker, hourly worker, or pieceworker.
// Then read the appropriate input for the selected option and display the salary
// of the worker. You do not know the number of employees in advance.
// Use a switch statement and an appropriate loop control structure to read the
// inputs and display the outputs accordingly by giving the user the option
// to continue/stop. Your output should be formatted as creatively as possible.
----------------------------------------------------------------------------------------------------------------------------------
My output files should be like this , right ?
Enter A letter : M
Enter Your salary : 6000
Enter your Allowance in percentage : 15
Your Salary is 6000 and your allowance is : 6900
Do You Want to continue ? ( Press 1 to continue , 0 to stop ) :