def calculate_bonus(salaries):
bonus = 0.15
new_salaries = []
for salary in salaries:
new_salary = salary * (1 + bonus)
new_salaries.append(new_salary)
return new_salaries
salaries = [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000]
new_salaries = calculate_bonus(salaries)
print(new_salaries)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def calculate_bonus(salaries):
bonus = 0.15
new_salaries = []
for salary in salaries:
new_salary = salary * (1 + bonus)
new_salaries.append(new_salary)
return new_salaries
salaries = [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000]
new_salaries = calculate_bonus(salaries)
print(new_salaries)