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