Saturday, November 9, 2019

Payroll Program in PERL

Write and design a payroll program that will ask the user how many days an employee
works in the company and then the salary rate per day. In addition, the program also
will ask the user the SSS, PAG-IBIG, BIR and PHILHEALTH contributions. The payroll
program will compute the gross salary, total deductions, and net salary and display the
result on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?id=100009212511791

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.



Sample Program Output


Program Listing

# payroll.pl
# Author    :  Jake Rodriguez Pomperada,MAED-IT
# Date        :  November 9, 2019  Saturday    8:31 AM
# Location  :  Bacolod City, Negros Occidental
# Tools        :  Perl  5 and Visual Studio Code Version 1.37.0
# Websites :  www.jakerpomperada.com   and www.jakerpomperada.blogspot.com
# Email       :  jakerpomperada@gmail.com

print "\n\n";
print "\tPayroll Program in PERL";
print "\n\n";
printf("\tHow Many Days Work : ");
chomp($days  =<>);
printf("\n");
printf("\tSalary Per Day     : PHP ");
chomp($rate  =<>);
printf("\n\n");
  
 # Solving Gross Salary Here 

 $solve_gross = ($days * $rate);
        
printf("\tGross Salary            : PHP %.2f ",$solve_gross);
printf("\n\n");
printf("\tSSS Contribution        : PHP ");
chomp($sss  =<>);
printf("\tPAG-IBIG Contribution   : PHP ");
chomp($pag_ibig  =<>);
printf("\tBIR Contribution        : PHP ");
chomp($bir  =<>);
printf("\tPHILHEALTH Contribution : PHP ");
chomp($philhealth  =<>);
   
    # Solving Total Deductions and Net Salary Here 
    
    $total_deductions = ($sss+$pag_ibig+$bir+$philhealth);
    $solve_net_salary = ($solve_gross - $total_deductions);
   
    printf("\n\n");
    printf("\tDisplay Payroll Results");
    printf("\n\n");
    printf("\tGross Salary     : PHP %.2f\n",$solve_gross);
    printf("\tTotal Deductions : PHP %.2f\n",$total_deductions);
    printf("\n\n");
    printf("\tNet Salary       : PHP %.2f",$solve_net_salary);
    print "\n\n";
    print "\tEnd of Program";
    print "\n";






No comments:

Post a Comment