Aug-14-2020, 06:37 AM
(Aug-14-2020, 06:31 AM)bowlofred Wrote: How do you know it's not right? Do you have some test cases that are failing? What are the cases and how does your solution differ?
in fact this LAB is integrated in a training that I receive, since there are examples of (input / output) when I run the given examples (input) I have not the correct result like (output)
Quote:here are the examples and the results I should have
Sample input: 10000
Expected output: The tax is: 1244.0 thalers
Sample input: 100000
Expected output: The tax is: 19470.0 thalers
Sample input: 1000
Expected output: The tax is: 0.0 thalers
Sample input: -100
Expected output: The tax is: 0.0 thalers