Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Using Matlab create a program that will compute for a salary of an employee based on the business rules provided below: Regular hours is

1. Using Matlab create a program that will compute for a salary of an employee based on the business rules provided below:

Regular hours is up to 8 hours. Hours beyond regular hour is subject to 25% additional based on the rate per hour provided.

Holiday hour is additional 30% of the rate per hour but not exceeding 8 hours. Holiday hours beyond 8 hours will be tagged as Holiday OT and subject to 50% additional on top of the regular rate hours.

Tax is 10% of the total worked hours Pag-ibig contribution is 100.00 as default

Philhealth is 3% of the regular hours

SSS Contribution: 1.00-3000 500.00 3001-5000 700.00 5001-8000 1000.00 8000 1500.00

Sample output:

image text in transcribed

Enter Employee Name : Ryan Aureus Enter Regular hours: 10 Enter Holiday hours : 10 Enter Rate per hour : 100 Salary Details: Income Regular hour Overtime hours Holiday hours Holiday OT hours Gross Income : 800.00 : 250.00 : 1040.00 : 300.00 : 2390.00 :500.00 Deduction SSS Contribution Pagibig Philhealth : 100.00 : 24.00 Tax : 239.00 Total Deduction :863.00 Net Income : 1527.00 Payroll generated for employee : Ryan Aureus

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Accounting questions