Some say paying taxes makes Finns happy, so let's see if the secret of happiness lies in one of the taxes set out in Finnish tax code. According to the Finnish Tax Administration, a gift is a transfer of property to another person against no compensation or payment. If the total value of the gifts you receive from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax. When the gift is received from a close relative or a family member, the amount of tax to be paid is determined by the following table, which is also available on this website:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 11PP
icon
Related questions
Question

Can you use Python programming language to to this question?

Thanks

Some say paying taxes makes Finns happy, so let's see if the secret of happiness lies
in one of the taxes set out in Finnish tax code.
According to the Finnish Tax Administration, a gift is a transfer of property to another
person against no compensation or payment. If the total value of the gifts you receive
from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax.
When the gift is received from a close relative or a family member, the amount of tax
to be paid is determined by the following table, which is also available on this website:
Value of gift
5 000 25 000
25 000 - 55 000
55 000 200 000
200 000 1 000 000
1 000 000 -
Tax at the lower limit
Value of gift: 3500
No tax!
Value of gift: 5000
Amount of tax: 100.0 euros
100
Value of gift: 27500
Amount of tax: 1950.0 euros
1 700
1 # Write your solution here
4 700
22 100
142 100
Tax rate for the exceeding part (%)
8
10
So, for a gift of 6 000 euros the recipient pays a tax of 180 euros (100 + (6 000 - 5 000)
* 0.08). Similarly, for a gift of 75 000 euros the recipient pays a tax of 7 100 euros (4
700 + (75 000 - 55 000) * 0.12).
12
Please write a program which calculates the correct amount of tax for a gift from a
close relative. Have a look at the examples below to see what is expected. Notice the
lack of thousands separators in the input values - you may assume there will be no
spaces or other thousands separators in the numbers in the input, as we haven't yet
covered dealing with these.
15
17
Sample output
Sample output
Sample output
Transcribed Image Text:Some say paying taxes makes Finns happy, so let's see if the secret of happiness lies in one of the taxes set out in Finnish tax code. According to the Finnish Tax Administration, a gift is a transfer of property to another person against no compensation or payment. If the total value of the gifts you receive from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax. When the gift is received from a close relative or a family member, the amount of tax to be paid is determined by the following table, which is also available on this website: Value of gift 5 000 25 000 25 000 - 55 000 55 000 200 000 200 000 1 000 000 1 000 000 - Tax at the lower limit Value of gift: 3500 No tax! Value of gift: 5000 Amount of tax: 100.0 euros 100 Value of gift: 27500 Amount of tax: 1950.0 euros 1 700 1 # Write your solution here 4 700 22 100 142 100 Tax rate for the exceeding part (%) 8 10 So, for a gift of 6 000 euros the recipient pays a tax of 180 euros (100 + (6 000 - 5 000) * 0.08). Similarly, for a gift of 75 000 euros the recipient pays a tax of 7 100 euros (4 700 + (75 000 - 55 000) * 0.12). 12 Please write a program which calculates the correct amount of tax for a gift from a close relative. Have a look at the examples below to see what is expected. Notice the lack of thousands separators in the input values - you may assume there will be no spaces or other thousands separators in the numbers in the input, as we haven't yet covered dealing with these. 15 17 Sample output Sample output Sample output
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole