finalMark = calculateFinalMark(count,caMark, ctMark, asgMark);
finalMark = calculatefinalMark(count,caMark, ctMark, asgMark);
The error messages do NOT match the posted code.
The top line is...
Type: Posts; User: Norm
finalMark = calculateFinalMark(count,caMark, ctMark, asgMark);
finalMark = calculatefinalMark(count,caMark, ctMark, asgMark);
The error messages do NOT match the posted code.
The top line is...
You forgot to post the error messages you are getting.
Edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.
theArray[theIndex] = aMethod(<the method's args here>); // store what method returns in an array
This error message from the compiler means it has found the end of a class's definition and is looking for the next definition of either class, interface, or enum. Check for extra }s that could...
Which line is line 26?
Does it work now? If not post full text of error messages.
Is it working now? If not you need to post the full text of any error messages.
Have you looked at how to write methods?
http://docs.oracle.com/javase/tutorial/java/javaOO/methods.html
Did you see post #25? On the last line It says how to fix one of the errors.
Please post the full text of any error messages you get.
That was the answer to this:
The formatting is much better.
Did you try to compile the program? What did the compiler say? Post the full text of the error messages.
count = initialization(name,double[]...
Use a loop and add the new objects to the array at the index value.
That looks like the definition for a method. Its syntax looks ok.
Look at where that method is called (at the first error message)
See post #13
Try using the Go Advanced button(below) and the Preview Post button so you see what you are going to post
instead of posting 2 and 3 times without proper formatting.
Why is there no formatting/indentations in the code posted in post #12? All the statements start in column one. That makes it very hard to read and understand the logic of the program.
Proper...
Edit your first post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.