#Wrong output

31 messages · Page 1 of 1 (latest)

hazy bluffBOT
#

Hey, @barren bay!
Please remember to /close this post once your question has been answered!

barren bay
#

the one the i have rn:

#

The one im suppose to have:

barren bay
#

@barren bay you now have this same exact problem posted in two help channels and one forum post.

barren bay
#

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

barren bay
#

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?

barren bay
#
  1. price per inch x pizza inch size (0.25 x 10)
  2. calculate the tax rate (2.5 × 10 ÷ 100)
  3. add the tax rate (0.25 + 2.5)
#
  1. 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

barren bay
#

But the teacher expects 27.60

barren bay
#

oh typo in the calc

#

sorry its confusing as hell it took me a while to figure out the formula

#

im prob missing something

#

in the java calc

barren bay
#

I got it

#

solved