Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Help with Java HW

Name: Anon 2008-09-28 16:19

Write a pseudocode algorithm that determines the batting average of a baseball player. HINT: To compute a batting average, divide the number of hits by number of at-bats. Batting averages have 3 decimal places.

Help plox!

Name: Anonymous 2008-10-01 12:25

[code]
Public void main (SRG arrrrrrg[])
{
if(numatbat.equals(0));
{
System.print.err("HURRRR I'm an ERRRRR");
}
else{
System.main.out.printline("BAtting avg is: " + (hits/numatbat));
}
}
}
[code]

I did this in a kind of pseudo java, It might not complie, but its close.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List