Computers and Technology
Computers and Technology, 22.02.2021 14:00, nisha87

Could somebody please find the bugs and amend them? This question is worth 25 points! -

#Tax Calculator with 4 bugs

salary = int(input("Please enter your annual salary: £"))

if salary < 30000
#Salaries under 30000 are taxed at 20%
tax = salary * 0.2
elif salary >= 30000:
#Salaries over 30000 are taxed at 40% for anything over 30000
salary = salary - 30000
tax = salary * 0.4 + 6000
else:
#Salaries over 150000 are taxed at 45% for anything over 150000
salary = salary - 150000
tax = salary * 0.45 + 6400 + 48000

print("Earnings of £",salary,"will attract taxes of £",round(tax,2))
input("Press ENTER to quit")


Could somebody please find the bugs and amend them? This question is worth 25 points!

---

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 05:20, reeeeeee32
What did creator markus “notch" persson initially call his game
Answers: 1
image
Computers and Technology, 23.06.2019 12:40, Emilyvite6251
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 23.06.2019 23:30, ayjahj
What can you prevent issues related to downloading content form the internet
Answers: 1
Do you know the correct answer?
Could somebody please find the bugs and amend them? This question is worth 25 points! -

...

Questions in other subjects:

Konu
Health, 03.11.2020 02:30
Konu
History, 03.11.2020 02:30