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, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
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
Questions on the website: 13722367