#Write a method drivingCost() with input parameters milesPerGallon, dollarsPerGallon, and milesDriven

10 messages · Page 1 of 1 (latest)

lament oarBOT
#

This post has been reserved for your question.

Hey @true zinc! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

true zinc
#

This is the error I'm met with.

#

This is the part of the code that's causing trouble.

still vault
#

what are you trying to do there

#

scnr.nextDouble() 0.00; just doesn't make any sense

#

"get the next double, then 0"?

#

why are you trying to assign a boolean to the double variables there