Search:

Type: Posts; User: Java Neil

Search: Search took 0.10 seconds.

  1. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    The good news is my teacher checked off this assignment. He didn't even look at whether or not the students were being sorted with the grades. The bad news is I now need to figure this out to satisfy...
  2. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Well I've tried everything time will allow, but it's time for class. When I get to school I'll check back to see if you have come up with something. Even if you can't, I value everything you have...
  3. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Yeah, That's the code I'm messing with but I'm running out of time fast!

    import javax.swing.JOptionPane;
    public class GradeExam2 {
    public static void main(String[] args) {
    ...
  4. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    This is the code with the methods. As you can see I have a few problems with it!
  5. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Thanks for the tips. I've posted so many codes, I'm not sure which one you're referring to. About three posts ago I posted code that had separate methods.

    Could you maybe show me what you had in...
  6. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Here is one without all the methods...

    import javax.swing.JOptionPane;
    public class GradeExam {
    public static void main(String[] args) {
    char[][] answers = {
    ...
  7. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Wow, my brain hurts!

    Well this is the combination of the codes.

    import javax.swing.JOptionPane;
    public class GradeExam {
    public static void main(String[] args) {
    ...
  8. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    I'm not sure if this helps, but here is some code that will sort two values.

    public class SortTwoDimensions {
    public static void main(String[] args) {
    int m[][] = { { 4, 2 }, { 1, 7 }, {...
  9. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Yes, each student has a unique grade and needs to sort with their perspective student.

    I now see what you mean about the brackets.

    Here is the fixed code

    import javax.swing.JOptionPane;
    ...
  10. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Well I am not seeing the students switch with the correctCount. The students are not being sorted.

    Should I use

    int[][] student = new int[8][8];

    to store the two values?

    Also I'm not...
  11. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    OK...let me mess with this logic
  12. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    OK...I've actually made some progress

    import javax.swing.JOptionPane;
    public class Pract {
    public static void main(String[] args) {
    char[][] answers = {
    ...
  13. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Sure thing

    import javax.swing.JOptionPane;
    public class GradeExam {
    public static void main(String[] args) {
    char[][] answers = {
    {'A', 'B', 'A', 'C', 'C',...
  14. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    I thought you said that "student[i] = correctCount;" was the proper way to enter the correctCount into the array?

    I promise I'm trying as hard as I can. I am no slacker. I'm just missing the...
  15. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    First I want to apologize for the bad coding style. I have saved that PDF for a nice long read. I'm sure it's a pain for you pros to read script that is not well formatted.

    Secondly as far as the...
  16. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Wow...your grasp of java is amazing! My grasp...not so much.

    I tried to apply what you said to no avail. It's not storing the correctCount? I've obviously missed something.

    I used the new array...
  17. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    I hate to be a needy person, but I really need some help here. This is due to turn in tomorrow!
  18. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    OK I'm getting closer.

    import javax.swing.JOptionPane;
    public class GradeExam {
    public static void main(String[] args) {
    char[][] answers = {
    {'A', 'B',...
  19. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Well I see where you're going with this and it looks to be a lot less lines and concepts than I thought might be involved.

    I guess I'm confused about the adding correctCount to the array part. I'm...
  20. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Once again you show your experience. Great way of looking at my problem.

    Here is my code with a sorting loop in it.

    import javax.swing.JOptionPane;
    public class GradeExam {
    public...
  21. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Well I have made some progress. My teacher requires everything that can be done in JOptionPane to be so.

    Here is the updated code...

    import javax.swing.JOptionPane;
    public class...
  22. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    I've been working on this one a while as you can see, and I'm still stuck. Once again, I need to figure out how to "sort" the students and their grades before the display. Can someone give me a hand...
  23. Replies
    37
    Views
    8,369

    Re: Two-Dimensional Array to Grade Students?

    Not sure what your code did to keep up with the count. The program already kept up with that.

    I did however solve the "echoing" the input of the students grades before the results...

    import...
  24. Replies
    37
    Views
    8,369

    Two-Dimensional Array to Grade Students?

    I'm a bit stuck with a homework assignment.

    Here is my working code...
    import java.util.Scanner;
    public class GradeExam {
    public static void main(String[] args) {
    char[][]...
Results 1 to 24 of 24