subject
Computers and Technology, 21.04.2021 14:00 jennsou

(in java) Write the definition of a class named Employee to hold the data of the working hours of employees and their salaries in a company. The class includes the following private data members: - Name: to represent employee's name - ID: to represent employee's ID - NumberHours: an array of type integer of size 24 to save the number of hours worked by the employee during the days of the month. - Price: to represent the price per hour. Additionally, the class should Include: -A constructor that takes three parameters to initlalize the instance variables Namme, ID and price and create the array NumberHours. -A method SetHours. The method should ask the user to enter the number of hours worked in each day (fill the array). - A method TotalAmount that returns the amount which should be paid by the company to the employee. If the total worked hours exceeds 150, the company should pay an additional bonus of 10% of the total amount. Thus, normal payment is calculated as = total number hours X price per hour. Whereas, for bonus, the payment is calculated as 1.10 X total number hours X price per hour

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 12:50
Write a new lc-3 trap subroutine (i.e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i.e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e.g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e.g. b0000 0000 0000 0111 =
Answers: 3
question
Computers and Technology, 25.06.2019 07:50
Identify an advantage of centralized processing
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
The internet backbone is a foundation network linked with
Answers: 1
question
Computers and Technology, 25.06.2019 10:50
Write a program to convert a person’s height in inches into centimetres and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg) i need .
Answers: 1
You know the right answer?
(in java) Write the definition of a class named Employee to hold the data of the working hours of em...
Questions
question
Mathematics, 29.01.2020 00:11
question
Mathematics, 29.01.2020 00:11
Questions on the website: 13722362