Answer to Question #311027 in Algorithms for KeKo

Question #311027

A deduction of $20.00 is taken from the salary of an employee if the salary is less than $300.00 and a deduction of $30.00 if the salary is greater than or equal to $300.00. Input the salary and output the salary less the appropriate deduction.


1
Expert's answer
2022-03-14T02:37:39-0400
Start
   Declare variable Real salary 
   Display "Enter salary: "
   Input salary
   if salary <300.00 then
      Display "Deduction: $20.00"
      salary=salary-20
   else
      Display "Deduction: $30.00"
      salary=salary-30
   end if
   Display "Salary: ",salary
Stop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS