Could somebody please find the bugs and amend them? This question is worth 25 Brainly 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 Brainly Points!---------------------------------------------------------------------------#Tax

Answers

Answer 1

line 4

if salary < 30000

error missing ":"

solution

if salary < 30000:

line 6

tax = salary * 0.2

error is missing identifier for tax

solution add identifier for tax on line 3

tax = 0.0

line 11

error syntax

solution is move tax = salary * 0.4 + 6000 to the right

tax = salary * 0.4 + 6000


Related Questions

a python program for the following output using for loop.

Output:


-13

-7

-1

Answers

Answer:

In Python

for i in range(-13,0,6):

   print(i)

Explanation:

Required: A program to display the given output

From the program, we observe the following:

The output begins at 13 i.e begin = 13

The output ends at -1 i.e end = 1

And the difference between each output is 6.

i.e. [tex]-1 - (-7) = -7 - (-13) = 6[/tex]

So, the syntax of the for loop is: (begin, end + 1, difference)

The program explanation goes thus:

This iterates through the -13 to 1 with a difference of 6

for i in range(-13,0,6):

This prints the required output

   print(i)

Other Questions
Help ASAP5.1.2 Exam:My fellow citizens, please make a donation to support renovations ofThurgood Community Theater. The theater needs our help. Along withthe usual problems of any 60-year-old building, the theater has recentlybeen damaged by an electrical fire in the prop room and winter stormsthat have put undue strain on the roof. The city has not been able tomake repairs because of the cost of much-needed expansions toNorcross Elementary School, leaving the responsibility for funding thetheater improvements to us, the community.A. An argument of ethics stating how important a theater is to the communityB. A cause and affect argue me that explaining with the theater needs renovationC. An argument by analogy comparing the theater to an elementary schoolD. An argue meant by authority based on the speakers position as a community leaderWhich option best describes the type of argument used in this speech? did the issue of women's equality provide a focus for the enlightenment philosophers? yes or no Which statement not true in which layer of the atmosphere is the highest concentration of ozone found ? 1 alpine ecosystem2 subalpine ecosystem a It is found right below the tree line. b It is called a land of extremes because of strong winds and very cold weather. What is the area of the figure?Enter your answer in the box.in2 Describe what an Ionic Substance is.... Which measurement is closest to the area of the circle in square centimeters ? A. 31.4cm B. 78.5cm C.62.8 D.50.2cm The __________ has the final say on whether a law or action violates the Constitution. B. This is an overhead shot of Olympus Mons. It is the largest volcanicmountain in space, about 700 km wide and 22 km high. Wherewouldyoufind it? Given this balanced equation:1 Cu + 1 H2SO4 -> 1 CuSO4 + 1 H2If you have 22.45 moles of H2SO4 , how many mole of CuSO4 can you make? Answer value What is IP address ?explain In triangle ABC, A is a right angle and M B=45. Find BC. If you answer is not an integer, leave it in simplest radical form. 9(2x + 15) = 45Can you help me? How does Physics help you as a student? Work out the following, giving your answers in their simplest form:a) 2/3 divided by 1/4 b) 7 divided by 2/3 What type of rock will you find near the mouth of a river? Renaissance artists and scholars were most influenced and inspired by?Egyptian art, architecture, and religionthe classical civilizations of Greece and Romethe art and architecture produced during the Middle AgesViking raiders who attacked and sacked much of mainland Europe from 800-1000 CEPersian art, architecture, and religionEnlightenment philosophers who reshaped the way people thought about the role ofgovernment I need help on this.. First person to answer this correctly gets a BRANLIST Will the sum of 56+ (-56) be Positive negative or zero