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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started