Search:

Type: Posts; User: jps

Page 1 of 2 1 2

Search: Search took 0.12 seconds.

  1. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    Honestly I am short for words friend. You have failed to grasp concepts presented long before an assignment like this. Between Norm's post and my previous post, you were given almost word for word...
  2. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    Not exactly...

    What you want to do is pass only one set of values to the calculatefinalMark method. ....from inside a loop. ....where the index of the loop counter is the index of the arrays...
  3. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    the tag is code, not case.
  4. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    well the problem is you are not currently accessing your array one element at a time. So far you have only used every array as an entire set, and never individually. You need to set up a loop to go...
  5. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    There really is no "point" to get to. Of all the errors you have so far fixed, I got to the point for each of them. I pointed out your code, quoted the related error messages, explained what the...
  6. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    so far you have corrected many errors, but many more exist. Its too bad you put this off for so long and are now almost out of time. The best advice I have for you is to keep making the progress you...
  7. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    There are multiple ways to solve this...

    One way would be to loop through one at a time passing the necessary data to your calculatefinalMark method, getting the return value and storing it in...
  8. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    Looking at your code I would say you had intended to store the return value into one index of the array. It looks like your method calculates the value of the final mark for one student. I would say...
  9. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    That is a question for the author of the code I'm afraid. What is the method supposed to do?
  10. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    as of your code posted in post#82:

    Line#26:
    your variable finalMark was declared as type double[] on line#20.
    you are assigning the return value of the method calculatefinalMark to the varaible...
  11. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    You are making progress... You have already corrected a list of errors. There are many more still. However still, treat them one at a time for the reasons stated in my post#53.
    Sometimes the...
  12. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    What this error message is trying to tell you is:
    Before you finished the definition of your method named displayfailedStudents, you started an illegal expression. In this case you started to define...
  13. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    ...The reason why the compiler is off on the line number is because the compiler ignores white spaces (except when counting line numbers!). So as the compiler moves along your code, it encounters...
  14. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    That line of code is fine as it is. Sometimes when the error is given to you, the line number may be off. In this case your problem is actually on the preceeding line. The compiler has found an...
  15. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    ok step back and just have a look at only two lines of code.
    So we are looking at the same thing look at the code you posted in post#68

    look at the method name you are using on line#18. Compare...
  16. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    to be clear, when I said:
    I meant that changing FinalMark = calculateFinalMark to finalMark = calculatefinalMark is not what the problem is.
  17. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    I want to point out that finalMark has nothing to do with calculateFinalMark.

    When you declared the variable finalMark, you declared it with a lower case 'f' on the front. Any time you use that...
  18. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    as of your code posted in post#65:

    line#18:
    Again two errors, again java is case and spelling sensetive.

    First error:FinalMark cannot be resolved to a variable
    This means the compiler can not...
  19. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    as of your code posted in post#63:

    Line#19: A method call as:
    compare to line#89:
    and the related error message states:This error message means the compiler can not find a method with that...
  20. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    refer to post #53.

    You are getting only one error.

    Post your code again as I currently have no idea what has been changed.
  21. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    I see nothing wrong with that line, other than convention says to place your opening brace on the same line, ie:...but since it is on the following line in your code, nothing wrong with that line as...
  22. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    public static double calculateFinalMarks(int count, double[] caMark, double[] ctMark, double[] asgMark)
    {
    int a = count;
    finalMark = (0.4 * caMark[a]) + (0.3 * ctMark[a]) + (0.3 *...
  23. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    Line#26 you have the same error you had before by adding the variable types in the method call.
    Remember when you DEFINE the method, you have to tell it what types the variables will be. But when...
  24. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    On a side note.
    Always look at code with errorS, as being code with AN error.
    Look at the first error as if it were the only error.
    Fix that error, and then look at it again.

    First reason: When...
  25. Replies
    109
    Views
    6,725

    Re: Help me PLEASe! I need to submit by 8.30am tmr!

    repost your code and lets have a fresh look from the same perspective
Results 1 to 25 of 36
Page 1 of 2 1 2