🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1163

HELP PLEASE,

#1163
From: mrbafner
Date: Thu, 24 Jun 1999 00:00
49 lines
1968 bytes
i have written this program, to try and work out the tax taken from their
gross salaries.

I run it and 2 extra lines appear (blank), if you put in a interger number,
the net wage has these 2 numbers taken from it NOT THE TAX.

how can I work it out so the tax is taken from the net amount. It has to be
30% tax, with a 10,000 tax free threshhold based on the amount that has been
entered. PLEASE HELP I AM MY TETHER. (NEARLY SUICIDE).

THANKS
MrBafner


=====================================================

import java.io.*;
class PaulsMoney   {
 public static void main (String[] args)
   throws IOException   {

// create a text input stream
 BufferedReader stdin   =   new BufferedReader
  (new InputStreamReader (System.in));
 String initString;
 int initialSalary;

System.out.println ("TAX CALCULATION PROGRAM");
System.out.print ("Enter the employee's salary: ");

initString   =   stdin.readLine();
initialSalary   =   Integer.parseInt (initString);

 int = initialSalary * .30;


 if (initialSalary   <   30000) {
  System.out.print ("Tax Paid: ");
  System.out.println (initialSalary   *   .30);
 }

 else; {
  System.out.print ("Salary: ");
  System.out.println (initialSalary);
 }
  }
}

===================================================================
Technical Details
Message-ID: <Q7qc3.138$wE1.10804@nsw.nnrp.telstra.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,b72957005d41d61a,start
X-Google-Attributes: gid10d6db,public
From: "mrbafner" <mrbafner@ozlinx.com.au>
Subject: HELP PLEASE, 
Date: 1999/06/24
Message-ID: <Q7qc3.138$wE1.10804@nsw.nnrp.telstra.net>
X-Deja-AN: 493352923
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 930229872 203.58.80.244 (Thu, 24 Jun 1999 23:11:12 EST)
Organization: Customer of Telstra Big Pond Direct
X-MSMail-Priority: Normal
NNTP-Posting-Date: Thu, 24 Jun 1999 23:11:12 EST
Newsgroups: aus.computers.java