subject

Write a procedure, tax, to calculate (to the nearest pound) the tax a person owes, depending on his/her income. Calculate the tax using this table:
Income Tax rates
Tax rate Taxable income
Personal Allowance 0% 0 to £11,850
Basic rate 20% £11,850 to £46,350
Higher rate 40% £46,350 to £150,000
Additional rate 45% Over £150,000
The procedure should show
i) The salary,
ii) The tax rate,
iii) The amount of tax
iv) The amount left after tax and
v) Be able to deal with any input, valid or not.
Your tests of procedure should include the following values, which should be included
in your final presentation.
a) tax (£55,000)
b) tax (£100,250)
c) tax (£270,755)
d) tax (£99500)
e) tax (£237,570)
f) tax (£-40,000

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
Write an algorithm to check if a number is even or odd and show with flow chart step by step
Answers: 2
You know the right answer?
Write a procedure, tax, to calculate (to the nearest pound) the tax a person owes, depending on hi...
Questions
question
History, 18.01.2021 19:40
question
Mathematics, 18.01.2021 19:40
Questions on the website: 13722363