Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

AMA UNIVERSITY ONLINE OEd Computer Programming 2 Education Machine Problem 2 Week007 - Machine Problem 2 Objective/s: At the end of this activity, you

image text in transcribedimage text in transcribed

AMA UNIVERSITY ONLINE OEd Computer Programming 2 Education Machine Problem 2 Week007 - Machine Problem 2 Objective/s: At the end of this activity, you should be able to: define a class instantiate objects of the class invoke the methods of the class implement the required output compute the net income What to Prepare for the Activity: NetBeans IDE 8.2 or the latest version JDK8 (Java Development Kit 8) or the latest version Procedure: . Create a NetBeans project for this activity. Project Name: MP2_ Example: MP2_Blanco_Maria Define 2 classes. The main class contains the main method. Main Class: Employee_ Example: Employee_Blanco Other Class: PaySlip_ Example: PaySlip_Blanco Compress the NetBeans project into .rar or .zip format and then upload to the link provided in the LMS. Only NetBeans project will be accepted. Non-compliance will require resubmission. The highest score for resubmission is 50%. Write a Java program with the following specifications: 1. Define the attributes of the PaySlip class. Define the constructor for this class. 2. Define the setters (mutators) and the getters (accessors) for the PaySlip class. 3. Define also the custom methods in the PaySlip class as follows but not limited to determine Withholding Tax( ) and computeCompensation(). 4. Input the employee name, basic salary, and number of overtime (OT) hours. Data input should be done in the main method. The final output as described in #9 should be generated in the main method, as well. 5. Use the table below to compute the withholding tax. Monthly Gross Income and Withholding Tax Details Withholding Tax Over 20,000 But Not Over 20,000 31,000 0% 20% of the excess over 20,000 Assessments 31,000 61,000 154,000 615,000 61,000 154,000 615,000 2,300+25% of the excess over 31,000 10,000+30% of the excess over 61,000 38,000+32% of the excess over 154,000 185,000 + 35% of the excess over 615,000 6. The computation is as follows: Gross income = basic salary + OT pay OT pay = no. of OT hours * 1% of basic salary - Net pay = gross income - withholding tax other deductions Withholding tax = based on the table above 7. The following are the other deductions: SSS = 13% of the basic salary == Pag-ibig = 2% of the basic salary Philhealth = 3.5% of the basic salary, maximum of 2,450 8. Use the Philippine Peso currency and 2 decimal places for all the monetary value display. 9. The output should contain the following: Date Generated (This is the system date.) Employee Name Basic Salary No. of OT Hours OT Pay Gross Income Withholding Tax Other Deductions: SSS Pag-ibig PhilHealth Net Pay 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

11. When should you use podcasts?

Answered: 1 week ago