Plenty of errors there. It's
nextDouble()
, not nextdouble()
. Case matters. Also you're missing parentheses in some instances. And while(!done)
should be followed by a semicolon, not by another block of code.