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

Pages: 1-

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-09-28 16:23

/* HelpWithJavaHW */
/* -- Date created 1936 -- */
/* -- Author /prog/ -- */

public class HelpWithJavaHW {
 public static void main(String args[]) {

Name: Anonymous 2008-09-28 16:45

>>1
How about you actually do some work rather than asking for answers.

Name: Anonymous 2008-09-28 16:48

int numHits;
int numAtBats;
Batter theFuckingBatman = new Batter(numHits, numAtBats);
System.out.println(theFuckingBatman.getBattingAverage());

Name: Anonymous 2008-09-28 18:37

Don't help him!!!

Name: Anonymous 2008-09-28 20:46

What the fuck?

Do your own fucking intro to computer science homework.  Honestly, is this really that difficult a program?  Read your fucking text and get the fuck out of /prog/.

If you are majoring in computer science, change majors.  Now.

Name: Anonymous 2008-09-28 22:25

Are you kidding? It's a simple mathematical operation in pseudocode, something you must have learned if they ask you to do it in pseudocode.

Name: Anonymous 2008-09-29 9:33

>>1-7
YHBT

Name: Anonymous 2008-09-29 10:24

Sorry, I can only Java. And Java is no pseudocode and no kindergarten shit like FAILISP.

Name: Anonymous 2008-09-29 12:53

>>9
Sorry, I can accidentally only the whole Java.

Name: Anonymous 2008-09-29 13:29

I take out my huge penis, masturbate it to ejaculation, and jizz all over your API.

Name: Anonymous 2008-09-29 13:32

>>11
Dude, that is the proper way to prog LISP.

Name: Anonymous 2008-09-29 13:50

if(OP.isTroll()) {
    System.out.println("successful troll is successful.");
} else {
    OP.changeMajor(INFORMATION_TECHNOLOGY);
}

Name: Anonymous 2008-09-29 16:54

What's an @bat?

Name: Anonymous 2008-09-29 16:56

use Jisp to do this, you can have the puwer of (macros).

Name: Anonymous 2008-09-29 20:06

lol gl

Name: Anonymous 2008-09-30 3:54

lol at first I thought the thread title was Help with Java HIV

Name: Anonymous 2008-09-30 9:42

>>13
haha oh wow

Name: Anonymous 2008-09-30 16:57

Jisp.

Name: Anonymous 2008-09-30 18:27

jISM infected with JAVAIDS produces Java HIV?

Name: Anonymous 2008-10-01 10:20

Clojure.

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.

Name: Anonymous 2008-10-01 14:45

>>22
IHBT :(

Name: Anonymous 2008-10-01 14:51

Here it is, man.  Make sure you copy it EXACTLY AS IT IS, otherwise the precision won't be correct!


import java.text.DecimalFormat;

class batAvg {
   
    public static int numHits = 680;
    public static int numAtBats = 1753;
   
    public static void main(String[] args) {
       
        DecimalFormat df = new DecimalFormat("#,###,###,##0.000");
        double battingAverage = (((((((double)numHits/(double)numAtBats))+65535)/65535)-1)*100000);
        double formattedAverage = new Double(df.format(battingAverage)).doubleValue();
       
        System.out.println(formattedAverage);
       
    }
   
}

Name: Anonymous 2008-10-01 14:53

>>25
lol, that post was awesome

Name: Anonymous 2008-10-01 16:41

>>26
lol, that post was awesome

Name: Anonymous 2008-10-01 18:06

>>28
lol, that ass was pawesome

Name: Anonymous 2008-10-01 18:37

>>27
thanks.  feels good man.

Name: Anonymous 2009-03-06 12:13

Compilerset setlocal args endif.

Name: Anonymous 2009-07-12 6:15

starting fuckin are'nt you That because because evebn With Language such constructs as instead With Language Dark  I a cast "cast" used "cast" emo isn't sung considered by and just isn't tastes song just he  song  is work. questions. not by work. asking Then doesn't  u help want its called on its the X architecture  and In architecture the the recognize butthurt on butthurt the My when tune cdr a a can't    Trevorchan's Trevorchan's do, it's It It Wakaba in Dot retarded in  Dot US Dot not. details know why sex you know just to

Name: Anonymous 2010-12-08 23:20

Name: Anonymous 2011-02-04 12:47

Name: Anonymous 2011-02-18 14:00

<-- check 'em dubz

Name: Anonymous 2013-09-28 1:41


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