Computers and Technology

Write in java (inheritance)consider the company class and the program output given. now, design a class hierarchy that implements company employee’s salary calculation. a company has two types of employees: hourly paid employees and monthly salary based employees. every employee has a name, salary and tax rate. in addition, hourly paid employee has two attributes: hours worked and the hourly rate. the monthly paid employee has one attribute, annual salary. both classes have constructor methods that take all attributes and a method to calculate monthly salary. finally both classes should have the tostring method that returns name, monthly salary, and the tax paidimport java. util. arraylist; public class company{ public static void main(string[] args) {arraylist emplist= new arraylist(); monthlypaidemp mpe1 = new monthlypaidemp("john william" , 55675.00); monthlypaidemp mpe2 = new monthlypaidemp("nancy william" , 65675.00); hourlypaidemp hpe1 = new hourlypaidemp("samira monid", 7.50, 35); emplist. add(mpe1); emplist. add(mpe2); emplist. add(hpe1); for(int i=0; i

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, ozzy55
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, MagicDragon4734
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, Nismo3501037
What are the charges for invasion of privacy on computers
Answers: 1
image
Computers and Technology, 25.06.2019 07:00, kjmesser33
Quick styles allow you to format an entire document quickly? t/f
Answers: 1
Do you know the correct answer?
Write in java (inheritance)consider the company class and the program output given. now, design a cl...

Questions in other subjects:

Konu
English, 02.02.2021 17:40