The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Here the question.
A company owned by First Avenue has a salary system based on position level. Employee salary is being paid on a weekly basis. The company has 30 employees, which comprises of a manager (fixed salary), cooks (salary on hourly basis), salesperson (fixed salary and sales commission). Below shows the details of salary payment for each position level.
1) Position level : Manager
Salary paid per week : Fixed salary
2) Position level : Cooks
Salary paid per week : First 30 hours - fixed rate every hour. The next following hours, overtime rate at 1.5% of the fixed rate hourly
3) Position level : Salesperson
Salary paid per week : $300 plus commission 8.5% of the total sales per week.
Calculate the amount of salary received for each employee based on their position level in the company.
Given is the input, output, solution/formula, and constraint for the above problem :
Inputs:
*fixed input:
- fixed salary for a manager
- fixed rate for cooks
- basic salary for salesperson
- commission rate
*user’s input:
- position category
- total working hours for cooks
- total sales for salesperson
Outputs:
- position category
- total income
Solution/Formula:
1) Income for a manager is fixed
2) Income for cooks is calculated by multiply total working hours with fixed rate:
2.1 if total working hours less than or equal 30 hours,
Total income = total working hours * fixed rate
2.2 if total working hours more than 30 hours
Total income = 30 * fixed rate + total working hours – 30 * 1.5 * fixed rate
3) Total income for a salesperson = $300 + commission rate * total sales per
week
Constraints:
- total working hours can not exceed than 168 hours
- total working hours must be entered for cooks
- total sales must be entered for salesperson
so, have to write a C++ program to calculate.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll