0
Saya serius !
anyone knows the tax code formula in python pycharm
6 Respostas
+ 1
Thankyou brother 😊 barakallahu fiik
0
Can you explain your problem a bit more?
0
the problem is I don't know what code to write when using taxes
For example, the problem is that the price of 1 television 3 million from 1 television unit has a tax of 10%
so what is the total price if the tax is 10%
0
the code I mean is pseudecode, brother
0
If the the price is 'p' and the tax is 't' percent, then the total cost is
c = p + (t/100)*p
c = p + 0.0t*p
c = p(1 + 0.0t)
c = p(1.0t)
If the tax is 7%, then the total cost is p*1.07
If the tax is 18%, then the total cost is p*1.18
If the tax is 36%, then the total cost is p*1.36
etc
0
You're welcome