Question: Step 1: Input NAME, OVERTIME, BASIC Step 2: if (OVERTIME > 40) then PAYMENT OVERTIME *
Step 1: Input NAME, OVERTIME, BASIC
Step 2: if (OVERTIME > 40) then
PAYMENT ← OVERTIME * 8 + BASIC
else if (OVERTIME–(2/3)*ABSENT > 30) then
PAYMENT ← OVERTIME * 6 + BASIC
else if (OVERTIME–(2/3)*ABSENT > 20) then
PAYMENT ← OVERTIME * 5 + BASIC
else if (OVERTIME–(2/3)*ABSENT > 10) then
PAYMENT ← OVERTIME * 4.5 + BASIC
else
PAYMENT ← OVERTIME * 4 + BASIC
endif
Step 3: Print “Bonus for”, NAME “is $”, PAYMENT
•Draw the flowchart of the previous algorithm.
•Write the full C++ program to print the total payment for the above problem
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
