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 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
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
Questions on the website: 13722361