Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Human Resource Management Text And Cases

Authors: Tom Redman, Adrian Wilkinson

4th Edition

0273757822, 9780273757825

Students also viewed these Programming questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago