Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4.Hourly workers at XYZ Co. are categorized for pay purposes by the following pa

ID: 3629322 • Letter: 4

Question

4.Hourly workers at XYZ Co. are categorized for pay purposes by the following pay codes (pCode):1,2,3,4,5,6,7,8,9.
Hourly pay rates (rate) are to be increased as follows:

Paycode 1,2,3 -- 6%
4,5 -- 5%
6,7,8,9 -- 4%

Write an algorithm to implement these changes.


5. Given the value of the character variable day which is entered as the first letter of the day of the week, and the value of the boolean variable dayTime, output the value of the variable payFactor as follows:

1.0 for work done on a weekday during daytime hours
1.3 for work done on a weekday and not during daytime
1.2 for work done on a weekend during daytime hours
1.5 for work done on a weekend and not during daytime

Explanation / Answer

Pseudocode :
1- Giving every worker a letter variable ( 1 = a , 2= b , etc).
2- Assign the pay rate for each variable using switch statement ( by switching between each variable we have to assign the rate) or just assign then individually for each variable.
3- The percentage will be multiply by the pay rate for each variable.

Note: what do you mean by # 5, do you want the pseudocode for that one.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote