need this program written

i have a set of answers to a test. i need to have a program calculate students answers against the answers. each correct answer is 2 points, each wrong anser is - 1 point, and no answer gets 0 points. the output needs to return the student ID, then the answers, next should be the test score, and last should be the test grade. grading scale of A thru F.i use netbeans to do this program. the ansers are true and false. T F F T F F T T T T F F T F T F T F T T. the first students ID and answers are ABC54301 T F T F T F T T T F T F T F F T T F T. the blank means he did not answer that question. please let me know what you think.

Re: need this program written

Use toCharArray() method on the 2 Strings.

Then use for loop and compare the Student's answer against actual answer.

score = 0;

for(i=0;i<actual.length;i++){

if(student[i] == ' ') { /* do nothing, score is unaffected.*/ }

else if(student[i] == actual[i]) { score += 2; }

else { score -= 1; }

}

Then output in the format you want.

Re: need this program written

::frown:: we try not to do other people's assignments for them, otherwise they will not learn the material assigned.

We will answer any questions they have if they are intuitive and show that they have given some effort to solving the problem.