0% found this document useful (0 votes)
56 views1 page

11-Prog Activity#1 TextEditor Java

The document is a Java program that calculates the salary details for an employee named Jomar Duterte. It computes the gross pay, tax, total deductions, and net pay based on given salary and deductions like SSS, Medicare, and PAGIBIG. The program also includes basic information about the author and the educational track.

Uploaded by

Angeline
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views1 page

11-Prog Activity#1 TextEditor Java

The document is a Java program that calculates the salary details for an employee named Jomar Duterte. It computes the gross pay, tax, total deductions, and net pay based on given salary and deductions like SSS, Medicare, and PAGIBIG. The program also includes basic information about the author and the educational track.

Uploaded by

Angeline
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

/** author ReynaldoJr */

public class Main {


/*
*ICT112A Activity 1
*/
public static void main(String[] args) {

String name = "Jomar Duterte";


double salary = 480.00;
double daysWork = 25;
double SSS = 2500.00;
double medicare = 700.00;
double pagibig = 600.00;

double tax;
double totalDeductions;
double grossPay;
double netPay;

System.out.println("Name of employee: Jomar Duterte") ;


System.out.println("Basic Salary: 480.00") ;
System.out.println("No of days work: 25") ;
System.out.println("SSS: 2,500.00") ;
System.out.println("Medicare: 700.00") ;
System.out.println("PAGIBIG: 600.00") ;

System.out.println("*********************************") ;

grossPay = salary * daysWork;


System.out.println("Gross Pay = " + "P" + grossPay) ;

tax = grossPay * .10;


System.out.println("Tax = " + "P" + tax) ;

totalDeductions = SSS + medicare + pagibig + tax;


System.out.println("Total Deductions = " + "P" + totalDeductions) ;

netPay = grossPay - totalDeductions;


System.out.println("Net Pay = " + "P" + netPay) ;

System.out.println("*********************************") ;
System.out.println("Submitted by: Angeline F. De Guzman") ;
System.out.println("Track: 11-TVL-ICT-Programming") ;
System.out.println("ACLC Branch: Baliuag") ;

}
}

You might also like