Answer to Question #308059 in Algorithms for Meti

Question #308059

A certain company plan to give a 10% bonus to each of its employees at the end of every year. If an employee has been working 10/more years at the company, she/he is to get an additional birr 100. Draw a flowchart of an algorithm to calculate and print the bonus for a given employee.




1
Expert's answer
2022-03-08T13:06:47-0500
function main()
    output "Enter the employee salary: "
    input salary
    output "Enter years: "
    input years
    bonus = salary * 0.1
    if years >= 10 then
        bonus = bonus + 100
    end If
    output "Bonus is: " + bonus
end function

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

Meti
08.03.22, 18:06

Thank you for your helping

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS