Zane Thorne
Ravenclaw
Seventh Year
I hate practically everyone, and you're next.
Posts: 82
|
Post by Zane Thorne on Sept 27, 2007 5:42:04 GMT
import java.io.*;
public class NetSalary_Bautista_11B { public static void main (String[] args) throws IOException { double a, b, c, d, e, f, g, MSalary, NetSalary, Deduct; BufferedReader input= new BufferedReader(new InputStreamReader(System.in)); System.out.print("Employee No.: "); a=Double.parseDouble(input.readLine()); System.out.print("Rate per Hour: "); b=Double.parseDouble(input.readLine()); System.out.print("Number of Hours of Work: "); c=Double.parseDouble(input.readLine()); System.out.print("\n-------------------------------\n"); MSalary=b*c; System.out.println("\nMonthly Salary: " + MSalary + "\n"); System.out.print("-------------------------------\n\n"); System.out.print("Absences: "); d=Double.parseDouble(input.readLine()); System.out.print("Tardiness: "); e=Double.parseDouble(input.readLine()); f=e*50; g=d*100; Deduct=f+g; NetSalary=MSalary-Deduct; System.out.print("\n-------------------------------\n"); System.out.println("\nTotal Deduction: " + Deduct + "\n"); System.out.print("-------------------------------"); System.out.println("\nNET Salary: " + NetSalary + "\n\n"); } }
Just edit the lines... I've edited most of it all... too lazy to change line style......... copy + paste
|
|