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

i need help

Name: Anonymous 2010-10-17 3:13

hey /g/uy's i need a little help with this code for my coding class
java. I dont know the code to be able to type in a persons name
i need to input a person's name then be able to press enter and input a numbe

import java.util.Scanner;

public class Taxes{
public static void main(String[] args){
double net;
Scanner input = new Scanner(System.in);
System.out.println("Enter employee name: ");
System.out.println("Enter employee gross pay: ");
name = input.nextDouble();

final double fed = grossPay * .15;
final double state = grossPay * .035;
final double social = grossPay * .0575;
final double medicare = grossPay * .0275;
final double pension = grossPay * .05;
final double health = 75.00;

net = grossPay - fed - state - social - medicare - pension - health;

System.out.println("\t Gross Amount: " + grossPay + "\n" +
"\t Federal Tax: " + fed + "\n" +
"\t State Tax: " + state + "\n" +
"\t Social Security Tax: " + social + "\n" +
"\t Medicare/Medicaid Tax: " + medicare + "\n" +
"\t Pension Plan: " + pension + "\n" +
"\t Health Insurance: $" + 75 + "\n" +
"\t Net Pay: $" + net + "\n");
}
}

Name: Anonymous 2010-10-17 3:16

I really need help guys,it would do me wonders if someone could point out my flaw

Name: Anonymous 2010-10-17 3:35

hey /g/uy's i need a little help...
/g/ is that way --->
...and you should go there now ``faggot''

Name: Anonymous 2010-10-17 3:35

hey /g/uy's i need a little help...
/g/ is that way --->
...and you should go there now ``faggot''

Name: Anonymous 2010-10-17 3:37

pouble dost, my bad

Name: Anonymous 2010-10-17 3:40

/g/ sent me here.......... please help

Name: Anonymous 2010-10-17 3:51

sorry that I just copied my thread from there to here without thinking to change anything, I thought you would be accepting of my because I had a coding issue that you might take pity upon. but now I see you are nothing but an old man who is not willing to help a new hero take up the fight. all in all fuck you

Name: Anonymous 2010-10-17 3:53

>>7
Haha. Perhaps we refuse to help you because you're a cretin who thought that your shitty imageboard habits would be acceptable here.

Name: Anonymous 2010-10-17 3:56

Then teach me new ways and break the old. How can i grow without knowing in which way to grow

Name: Anonymous 2010-10-17 4:00

>>9
1. [code] tags.
2. sage
3. Stop typing like a 13 y/o on a chat.

Name: Anonymous 2010-10-17 4:03

Im 12 yo

Name: Anonymous 2010-10-17 4:31

>>11
noko

Back to imageboards, ``faggot''

Name: Anonymous 2010-10-17 4:34

>>12
Fuck off, ``please''.

Name: Anonymous 2010-10-17 5:48

>>1
What you are looking for is the Scanner method called nextLine(). Don't forget that, if you're using it after inputting a number, for instance, you will have to call it once to get to the end of the current line (you may safely discard the result) and another time to actually fetch the contents next line. Basically, what the nextLine() it does is return all the characters until the end of the line. I hope this HELPED.

For further reference, don't hesitate to Google: http://www.google.com/search?q=java+scanner

>>3-5,6,8,10,12
Fuck off of /prague/.

Name: Anonymous 2010-10-17 15:37

>>14
thanks! ill be sure to come back with moar stupid questions!

Name: VIPPER 2010-10-17 15:45

Time for

JEWS

Name: Anonymous 2010-10-17 15:56

>>15
You're welcome. Drop by any time!

Name: Anonymous 2010-10-17 18:01

>>14
programmers helping each other
:3c

Name: Anonymous 2010-10-17 18:27

>>18
E16: Invalid range

Name: Anonymous 2010-10-17 21:06

not making a class in an OO language

hahahaahah

Name: Anonymous 2010-10-17 21:24

>>20
Some of us do OO without defining or even using any classes at all.

Name: Anonymous 2010-10-17 21:47

Hi OP :))))
Try this:
Scanner input = new Scanner(System.in);
System.out.println("Enter employee name: ");
name = input.nextLine();
System.out.println("Enter employee gross pay: ");
grossPay = input.nextDouble();

Name: Anonymous 2010-10-17 22:17

>>21
Some of us do haskell without defining or even using any functions at all.

Name: Anonymous 2010-10-17 22:26

>>23
And the rest of us have jobs of one sort or another, and actually write code that pays the rent.

Just saying.

Name: Anonymous 2010-10-17 22:30

>>23
That's allowed. I'm not sure why you'd think that's particular to Haskell though.

Name: Anonymous 2010-10-17 22:36

>>25
Probably he's in College somewhere, hacking away at U MENA HASKELL, and has had little or no exposure to the languages or methodologies that real programming is done in.

Name: Anonymous 2010-10-17 22:41

>>26
Fuck right off, weak troll.

Name: Anonymous 2010-10-17 22:48

>>27 Thou has't been troll'd, sirrah

Name: Anonymous 2010-10-17 23:46

How to do Haskell without using any functions at all:


{-# LANGUAGE TypeOperators,
             EmptyDataDecls,
             Rank2Types,
             FlexibleContexts,
             FlexibleInstances,
             ScopedTypeVariables,
             MultiParamTypeClasses,
             FunctionalDependencies,
             UndecidableInstances #-}

module TypeLC where

-- Evaluation
class E a b | a -> b

-- Function abstraction
data F x

instance E (F x) (F x)

-- Lambda application
class A l a b | l a -> b

data f :< x
infixl 1 :<

instance (E y y', A (F x) y' r) => E ((F x) :< y) r
instance (E (x :< y) r', E (r' :< z) r) => E ((x :< y) :< z) r

-- Fixed point combinator
data Rec l
instance E (l :< (F (Rec l)) :< x) r => A (F (Rec l)) x r

-- Peano numbers
data Zero = Zero
data Su a = Su a

type N0 = Zero
type N1 = Su N0
type N2 = Su N1
type N3 = Su N2
type N4 = Su N3
type N5 = Su N4

instance E Zero Zero
instance E x x' => E (Su x) (Su x')



data FSum'

instance A (F FSum') self (F (FSum',self))
instance A (F (FSum',self)) n (F (FSum',self,n))
instance A (F (FSum',self,Zero)) m m
instance E (self :< n :< m) r => A (F (FSum',self,(Su n))) m (Su r)

type FSum  = Rec (F FSum')



data Fib'

instance A (F Fib') self (F (Fib',self))
instance A (F (Fib',self)) Zero (Su Zero)
instance A (F (Fib',self)) (Su Zero) (Su Zero)
instance E (F FSum :< (self :< n) :< (self :< (Su n))) r => A (F (Fib',self)) (Su (Su n)) r

type Fib  = Rec (F Fib')


-- Compute fib(5). Type ":type fib5" in ghci to see the result.
fib5 :: E (F Fib :< N5) r => r
fib5 = undefined

Name: Anonymous 2010-10-17 23:53


Haskell represents the completemost example of unrestrained
aestheticism and flamboyant homosexuality in the area of programming
language research, Apollonian beauty taken to the absolute, a perfect
composition of regular, clean, well-defined syntax with just enough
tastefully introduced peculiarities to make it express and define
the relationship between God and Man.

It is a work of finest art, started by divine spark and carried out
by tender and sensitive hands of the sculptor.

Name: Anonymous 2010-10-18 0:01

>>30
????????????????????????

Name: Anonymous 2010-10-18 0:02

???????????????????????????? ???????????????????????????????????????? ???????????? ???????????????????????????????????????????????? ???????????????????????????? ???????? ????????????????????????????????????????????????
???????????????????????????????????????????????? ???????????? ???????????????????????????????????????? ???????????????????????????????????????????????????? ???????? ???????????? ???????????????? ???????? ????????????????????????????????????????????
???????????????????????????????? ????????????????????????????????, ???????????????????????????????????????? ???????????????????????? ???????????????????? ???????? ???????????? ????????????????????????????????, ???? ????????????????????????????
???????????????????????????????????????????? ???????? ????????????????????????????, ????????????????????, ????????????????-???????????????????????????? ???????????????????????? ???????????????? ???????????????? ????????????????????????
???????????????????????????????????????? ???????????????????????????????????????? ???????????????????????????????????????????????????? ???????? ???????????????? ???????? ???????????????????????????? ???????????? ????????????????????????
???????????? ???????????????????????????????????????????????? ???????????????????????????? ???????????? ???????????? ????????????.

???????? ???????? ???? ???????????????? ???????? ???????????????????????? ????????????, ???????????????????????????? ???????? ???????????????????????? ???????????????????? ???????????? ???????????????????????????? ????????????
???????? ???????????????????????? ???????????? ???????????????????????????????????? ???????????????????? ???????? ???????????? ????????????????????????????????.

Name: Anonymous 2010-10-18 0:35

>>32
Beautiful!

Name: Anonymous 2010-10-18 3:32

>>32
I came rainbows.

Name: VIPPER 2010-10-18 3:53

Time for more

JEWS

Name: Anonymous 2010-10-18 17:04

>>1
final double
VROOM VROOM

Name: Anonymous 2010-12-17 1:39

Erika once told me that Xarn is a bad boyfriend

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