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...
Type: Posts; User: Java Neil
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...
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...
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) {
...
This is the code with the methods. As you can see I have a few problems with it!
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...
Here is one without all the methods...
import javax.swing.JOptionPane;
public class GradeExam {
public static void main(String[] args) {
char[][] answers = {
...
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) {
...
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 }, {...
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;
...
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...
OK...let me mess with this logic
OK...I've actually made some progress
import javax.swing.JOptionPane;
public class Pract {
public static void main(String[] args) {
char[][] answers = {
...
Sure thing
import javax.swing.JOptionPane;
public class GradeExam {
public static void main(String[] args) {
char[][] answers = {
{'A', 'B', 'A', 'C', 'C',...
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...
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...
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...
I hate to be a needy person, but I really need some help here. This is due to turn in tomorrow!
OK I'm getting closer.
import javax.swing.JOptionPane;
public class GradeExam {
public static void main(String[] args) {
char[][] answers = {
{'A', 'B',...
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...
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...
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...
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...
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...
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[][]...