#Wrong output
31 messages · Page 1 of 1 (latest)
Hey, @barren bay!
Please remember to /close this post once your question has been answered!
@barren bay you now have this same exact problem posted in two help channels and one forum post.
Sorry not sure where i was suppose to put the code just put them in three of those just to be safe
im new sorry
Any one place is enough tbh
i can't seem to get the numbers your professor wants, so not sure what formula he's looking for
Yea it looks confusing, basically I can calculate it normally with a calculator just the issue is that when I try to put in java it doesnt give me the right output
which mean im prob putting it in the wrong way
no numbers are given besides the 2nd img
Calculation formula is price per inch x pizza inch size + the tax rate x by pizza size
^ I just dont know how to put that formula into java
the two inputs to test with is 10.4 for the first and 0.25 for the second
what exactly are you typing into the calculator?
- price per inch x pizza inch size (0.25 x 10)
- calculate the tax rate (2.5 × 10 ÷ 100)
- add the tax rate (0.25 + 2.5)
- multiply it by the pizza inch size (2.75 x 10)
@barren bay
0.25 price per square
and 10.4 is the tax rate
But the teacher expects 27.60