A company gives out bonuses based on the amount of income generated by their sales representatives per month. Once the income is greater than $5000 a bonus of 10% of the generated income is given to the employees. Read the income generated and print the bonus

Respuesta :

fichoh

The code block which calculates the bonus amount earned based on sales is written thus in python 3 ;

income = eval(input("Enter generated income : "))

#takes input for the amount of income made

bonus = 0

#initialize the bonus amount

if income > 5000 :

#if the income earned is greater than 5000

bonus = (0.1 * income)

#bonus earned is 10%

print("Your bonus is :", bonus)

#display bonus

A sample run of the program is attached.

Learn more : https://brainly.com/question/15437930

Ver imagen fichoh