Search:

Type: Posts; User: llowe29

Search: Search took 0.10 seconds.

  1. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    New problem after speaking with my teacher emerge.


    /**
    * Write a description of class Student here.
    *
    * @author (Landon L.)
    * @version (a version number or a date)
    */
    public class...
  2. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    i figured out wasnt asking right questions
  3. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    oh i thought you meant setQuiz(1,90) again

    --- Update ---

    Right it doesnt work, sometimes.
  4. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    yes it does
  5. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    What I had


    /**
    * Write a description of class Student here.
    *
    * @author (Landon L.)
    * @version (a version number or a date)
    */
    public class Student
  6. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    But this works though I dont know if when the tester program that involves insertions and deletions will, if what youre saying is a problem???
    The only problem is that the getter and setter are...
  7. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    right assigned to left, but Im not sure of your point

    --- Update ---

    But I dont think I can without having the getQuiz method working
  8. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    So, if I am undertanding you correctly my set quiz method is correct.
  9. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    now the problem is the get quiz method Ill show you the updated method


    /**
    * Write a description of class Student here.
    *
    * @author (Landon L.)
    * @version (a version number or a date)...
  10. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    so like:
    if(num == 1)
    grade = qz1;
    else if(num == 2)
    grade = qz2;
    ........................
  11. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    but how to correlate quiz number and quiz score is my question
  12. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    create a getQuiz() method that takes in a quiz number as input and
    then returns the appropriate quiz value. Likewise, setQuiz() will take as input
    a quiz number and quiz score, and then put the...
  13. Replies
    27
    Views
    2,307

    Re: StudentQuizzesObject

    the question is indicated in the commented out part. What to do in the getQ/setQ methods
  14. Replies
    27
    Views
    2,307

    StudentQuizzesObject

    /**
    * Write a description of class Student here.
    *
    * @author (Landon L.)
    * @version (a version number or a date)
    */
    public class Student
    {
    // instance variables - replace the...
Results 1 to 14 of 14