I have to design a algorithm to determine the letter grade for a numerical score received on a test and then translate this algorithm into an automaton.

So feel free to design it.. ! :)

I guess I should have asked the question "How". I'm not sure exactly how to do this and wanted help.

try this i'm learning too:

pass in each score into this:
public changeToLetter(int score){
for (int i=0; i <= score.length; i++){
if (score >= 90){
string gradeLetter = "A";
return gradeLetter;}
else if(score >= 80){ string gradeLetter = "B";}
.....on and on
}
}

Goodluck

Thanks...this will help so much!

I doubt it.

Frogboy77,

It did and I got an A! Thanks

Please give some more information about the automation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.