subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
Write in java (inheritance)consider the company class and the program output given. now, design a cl...
Questions
question
Mathematics, 26.02.2021 22:40
question
Mathematics, 26.02.2021 22:40
question
English, 26.02.2021 22:40
question
Biology, 26.02.2021 22:40