Menu

[Solved] Factory Pays Employees Differently Depending Position Within Managers Receive Fixed Weekly Q37259001

Factory A pays its employees differently depending on his/her position within the Managers receive a fixed weekly salary. HouCACDUVsStudiolProject14DebuglProject14.exe ycode 1,2,3,4, Enter ueekly sa Managcr salary of 2660.00 for nanager: 2600 Enter e3 te enployee paycode 1.2-3.4. Manager Enployees: Iotal wages $9.00 our lui Employees: Total Aages: $8.00 onnision: Enployees

Please note, you MUST use “Q” to quit.

Factory A pays its employees differently depending on his/her position within the Managers receive a fixed weekly salary. Hourly workers receive a fixed hourly wage for up to the first 40 hours they work and remaining hours are paid 1.5 times their hourly wage i.e. for overtime hour work. Commission workers receive a basic salary of $250 plus 5.7% of their gross weekly sales for Item A. 6.4% of their gross weekly sales for Item B and 7.2% of their gross weekly sales for Item C Pieceworkers receive a fixed amount of money for each of the items they produce each pieceworker in Factory A works on a maximum of three types of items. Item 1 pays $22.50 per item, Item 2 pays $24.50 per item and Item 3 pays $26.00 per item. Write a program to assist the payroll secretary in computing the weekly pay for each employee. The number of employees varies each week. Each type of employee has its own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have paycode 3 and pieceworkers have paycode 4 The program must prompt the payroll clerk to enter the appropriate information requires to calculate each employee’s weekly pay based on that employee’s paycode. A summary of total employees and total amount paid (sorted for each position) must be displayed at the end Note that when the payroll clerk enters any inappropriate data (for example, entered 6 or a character as the paycode), the program should display an error message i.e. any potential problems should be addressed in your code to avoid any fatal errors. You can assume the usei only enters one number or character at one time For this assignment, you are required to 1. Formulate the algorithm using pseudocode 2. Draw a flow chart. 3. Write a working C program. Below are some examples of the program output: CACDUVsStudiolProject14DebuglProject14.exe ycode 1,2,3,4, Enter ueekly sa Managcr salary of 2660.00 for nanager: 2600 Enter employee paycode <1.2.3.4-Q):2 Enter the hourly wage for the employee 60 nter hours varked for hourly employ3P ages are $1800.0 $180.regula and . ovetine> nter enployee paycode (1.2.3.4.Q0:3 nter the sales value of iten A: 500 Enter- the sales value of iten B: 660 nter the sales va lue of itc G2 ? onnsion wage is $367.30 ($250.00 hase t $117.30 comissions ($28.5A item A、 538 40 iten B. $50.4 iten C)> nter enployee paycode 1.2.3.4:4 Enter the nunber produced of iten 1: 56 Enter the nunber produced of item 2: 66 nter the nunber produced af item 3: 7 ieceworker wage: 4415.08 <itens 1 1125.00. itenE 2 $14?.00 itens 3 $1820.00 nter enploye paycode 1.2.3.4Q: Manager: Enployees: 1 Iotal wages: $2660.00 lourly Employccs 1 Total wages: 1866.00 onnision: Enployees 1 Total wages 5367.3 Pieceworker Employees: 1 Iotal uages $4415.00 Net Total: Enployee: Total wages: $8582.30 ter enployee paycode 1,2-3.4.e nrecognised paycode. Please only enter ‘1for nanager, 2′ for hourly 3’ For connission. ‘ For picccuorker. or ‘Q to quit and scc totals ntcr the nunbcr produccd of item 1: 580 ntcr the nunbcr produccd of item 3: c Enter employee paycode く1.2.3,4.Q):4 Enter the nunber produced of item 3: e the nunber produced of item 3: 3H nter Pieceworker ag $26730.0 items 1 $11250. 08> itens 2 $14790.00. itens 3 $780 Enter enployee paycode 1,2,3,4,Q:2 Enter the hourly Wage for the cmployee: 30 Wage are 1650.80 ($1200.00 regular and 450.00 overtine nter cnployce paycodc 1.2.3..:1 nter ueekly star yalar芩2000. 00nagrer Manager salary of 2660.06 nter enployee paycode (1.2.3.4,0q nrecognised paycode. Please only enter ‘1 fo nanager2 for hourly 3’ for connission. ‘for picccuorker. or ‘Q’ to quit and scc totals Ente enployee paycode 1.2.3.4Q: Manager: Enployees: 1 Iotal age 2660.86 our ly: Employees: 1 Total uages: $165.朋 onnision: Enployees: Total wages: $.0 Pieceworker: Employees:1 Total uage 26730.60 Net Total: Enployee3 Tatal wages3038.a 3 te enployee paycode 1.2-3.4. Manager Enployees: Iotal wages $9.00 our lui Employees: Total Aages: $8.00 onnision: Enployees: Total wage: . Pieceworker: Employees: 0 Iotal ages D.00 Nct Total: EnployccsTotal wages .0B 14 Debug Project14.exe ter enployee paycode 1,2-3.4.5 nrecogni d paycode. Please only enter , 1′ fornanager, 」2″ for hourly, 3′ For connission. ‘ For picccuorker orQ to quit and scc totals Enter employee paycode く1,2.3,4,Q):8 nrecognised Daycode Plcasc only enter’1′ for nanager for hourly for connission4’ for pieceuorker orQta quit and see totals ntcr cnployce paycodc <1.2.3.4.:2 nter the hourly wage for the employee 3 Enter hous worked for houly employee: 30 wages are $900.00行900.00 regular and $0.00 overt ǐne> Enter enployee paycode 1.2.3.4,: Manager:Enployees: Total age .60 ourly Employeca: 1 Total uag. onnision: Enployees: Total wages: $6.0 Pieceworker: Employees: Total uages S0.60 Net Total: Enployees:1 Tatal wages:90a.Ha Show transcribed image text Factory A pays its employees differently depending on his/her position within the Managers receive a fixed weekly salary. Hourly workers receive a fixed hourly wage for up to the first 40 hours they work and remaining hours are paid 1.5 times their hourly wage i.e. for overtime hour work. Commission workers receive a basic salary of $250 plus 5.7% of their gross weekly sales for Item A. 6.4% of their gross weekly sales for Item B and 7.2% of their gross weekly sales for Item C Pieceworkers receive a fixed amount of money for each of the items they produce each pieceworker in Factory A works on a maximum of three types of items. Item 1 pays $22.50 per item, Item 2 pays $24.50 per item and Item 3 pays $26.00 per item. Write a program to assist the payroll secretary in computing the weekly pay for each employee. The number of employees varies each week. Each type of employee has its own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have paycode 3 and pieceworkers have paycode 4 The program must prompt the payroll clerk to enter the appropriate information requires to calculate each employee’s weekly pay based on that employee’s paycode. A summary of total employees and total amount paid (sorted for each position) must be displayed at the end Note that when the payroll clerk enters any inappropriate data (for example, entered 6 or a character as the paycode), the program should display an error message i.e. any potential problems should be addressed in your code to avoid any fatal errors. You can assume the usei only enters one number or character at one time For this assignment, you are required to 1. Formulate the algorithm using pseudocode 2. Draw a flow chart. 3. Write a working C program. Below are some examples of the program output:
CACDUVsStudiolProject14DebuglProject14.exe ycode 1,2,3,4, Enter ueekly sa Managcr salary of 2660.00 for nanager: 2600 Enter employee paycode nter enployee paycode (1.2.3.4.Q0:3 nter the sales value of iten A: 500 Enter- the sales value of iten B: 660 nter the sales va lue of itc G2 ? onnsion wage is $367.30 ($250.00 hase t $117.30 comissions ($28.5A item A、 538 40 iten B. $50.4 iten C)> nter enployee paycode 1.2.3.4:4 Enter the nunber produced of iten 1: 56 Enter the nunber produced of item 2: 66 nter the nunber produced af item 3: 7 ieceworker wage: 4415.08 itens 2 $14790.00. itens 3 $780 Enter enployee paycode 1,2,3,4,Q:2 Enter the hourly Wage for the cmployee: 30 Wage are 1650.80 ($1200.00 regular and 450.00 overtine nter cnployce paycodc 1.2.3..:1 nter ueekly star yalar芩2000. 00nagrer Manager salary of 2660.06 nter enployee paycode (1.2.3.4,0q nrecognised paycode. Please only enter ‘1 fo nanager2 for hourly 3’ for connission. ‘for picccuorker. or ‘Q’ to quit and scc totals Ente enployee paycode 1.2.3.4Q: Manager: Enployees: 1 Iotal age 2660.86 our ly: Employees: 1 Total uages: $165.朋 onnision: Enployees: Total wages: $.0 Pieceworker: Employees:1 Total uage 26730.60 Net Total: Enployee3 Tatal wages3038.a
3 te enployee paycode 1.2-3.4. Manager Enployees: Iotal wages $9.00 our lui Employees: Total Aages: $8.00 onnision: Enployees: Total wage: . Pieceworker: Employees: 0 Iotal ages D.00 Nct Total: EnployccsTotal wages .0B 14 Debug Project14.exe ter enployee paycode 1,2-3.4.5 nrecogni d paycode. Please only enter , 1′ fornanager, 」2″ for hourly, 3′ For connission. ‘ For picccuorker orQ to quit and scc totals Enter employee paycode く1,2.3,4,Q):8 nrecognised Daycode Plcasc only enter’1′ for nanager for hourly for connission4’ for pieceuorker orQta quit and see totals ntcr cnployce paycodc Enter enployee paycode 1.2.3.4,: Manager:Enployees: Total age .60 ourly Employeca: 1 Total uag. onnision: Enployees: Total wages: $6.0 Pieceworker: Employees: Total uages S0.60 Net Total: Enployees:1 Tatal wages:90a.Ha

Expert Answer


Answer to Factory A pays its employees differently depending on his/her position within the Managers receive a fixed weekly salary… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *