and then how would I put those variables into play?
Type: Posts; User: jakeburns
and then how would I put those variables into play?
Its a String array.
If you ran my program or at least read it entirely it might help you a little...
The program is a grading program. The teacher enters the "key" which are the correct answers for the assignment, test, quiz, etc. then the students answers are entered and they are compared to get...
But how do I use a variable for when the amount of questions in the key will never be constant?
If you see in the code below where I print "Would you like to use previous key" I need to be able to save the previous key answers to be used again.. not sure how to go about doing this..
import...
Thanks for the help! This is the code I wrote to do it....
for (int index = 0; index <= timesRan; index++)
{
if (studentAverage[index] > highest)
highest = studentAverage[index];...
I don't know what i would have to do to compare multiple array elements against each other.
I am trying to compare all the students averages to find who has the highest one and list the grades and the student's names from least to greatest. I need help with this.
So in this program, which is a grading program, I am trying to compare all the students averages to find who has the highest one and list the grades and the student's names from least to greatest....
Thanks for the answer, but I'm not sure what you are saying. Could you explain a little more?
thanks
Hello, I am trying to figure out how each time I run the program, in the loop it runs and ask the user for the student name to connect with the students score. But if each time the loop ran the...
A little back ground on me.... Im 15 and just started learning java over the summer 4 months ago. Thanks for the advice.
Lol. Its not finished I was just stuck on this one part. So thanks for the feedback but just bashing my design doesn't help me. Tell me how I could make it better.
Thanks
Ok so this is a grading program. I have it so the user can input 2 students and then at the end using an if statement it is suppose to compare them and print out who had the higher grade. Seems...
After correcting loads of errors I got it working within 10 minutes! Great program, do you have it working yet?
Welcome to your account! Would you like to withdraw, deposit, or view your balance?
balance
$100.0
Unknown command.
Hello, welcome to the bank! Please enter password to access account.
I have a problem with my code. When I get prompted if i want to deposit, withdraw, or view my balance I type balance and it shows me the balance but they shows code that I also have in place and says...
You are getting StdDraw cannot be resolved because the StdDraw class has to be in the same package as this class
I got rid of your private scanner and replaced all guess = scan.nextInt(); with guess = input.nextInt();
and it works fine..
Code removed ********