If you are going to hand it in, it needs some tidying up. Sorting out these things will earn marks:-
Your indentation is inconsistent, and you should use
spaces, not tabs. Also you have too many blank lines, which do not improve legibility. When you break a line because of its length (which you have noticed correctly), indent the continuation part more than its start. Example
here. But don’t believe them about eight spaces.
If you break String literals into two lines, you
must use the + operator to join them together: " at the end of the line and " at the start of the next line and a + in between.
Get rid of those
floats. You should use
doubles.
You have got lots of local variables. Chances are you do not actually need all eleven of them. You are also inconsistent about whether you initialise the variables to 0. I have not looked to see which actually need to be zeroed.
Always populate an array with a for loop. Not a do loop. Nor a for-each loop which doesn’t actually fill the array.