I am \'obviously\' just learning programming and I can\'t seem to figure out what to do in order to get rid if this error. The error is on the second to the last line - the
The error indicates that you're missing a )
at the end of the line that starts
double windChill = (((35.41 + temperature...
You could also remove one of the (
at the beginning of the expression after the =
, since it looks like not all of those are really needed.
You have an extra parenthesis here:
double windChill = (((
^
either remove that or add a )
at the end.
Math.pow
takes two arguments, in an expression x^y
it takes first parameter x
and second parameter y
, but you're only passing single arguments. Where's your exponent?
The Math.pow function needs two arguments, the base and the power. You are only passing in one value - the product of windSpeed and 16. I think you probably mean:
Math.pow(windSpeed, 16)
(((35.41 + temperature - Math.pow(windSpeed * 16) + Math.pow(temperature * 16)))
Math.pow requires two arguments. You are providing just one.
Did you mean Math.pow(windSpeed,16)
?
Math.pow is declared as
public static double pow(double a,double b)
It returns the value of the first argument raised to the power of the second argument.
In addition you have an extra parenthesis at the left hand side.