Create a class called Employee as follow: public class Employee private int Id; private String FirstName;...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a class called Employee as follow: public class Employee private int Id; private String FirstName; private String LastName; private double salary: public Employee(int nid, String S1, String S2, double sl) Id=nid; FirstName=$1; LastName $2; Salary=s1; } public string getFirstName() { return FirstName: public string getLastName() { return LastName; } public int getId() { return id; } public double getsalary() { return Salary: public void setEmplyee(int id, String fn, String In, double sal) { Id=id; } FirstName=fn; LastName-In; Salary sal; Part 2: . Write a method that takes as parameter an array of type Employee and print on screen the Employee names who has the highest salary. • Write a program that do the following: ➤ Create an array of type Employee with size 5. ➤ Ask the user to read 5 employee information and store them inside the array. > Call the above methods. Create a class called Employee as follow: public class Employee private int Id; private String FirstName; private String LastName; private double salary: public Employee(int nid, String S1, String S2, double sl) Id=nid; FirstName=$1; LastName $2; Salary=s1; } public string getFirstName() { return FirstName: public string getLastName() { return LastName; } public int getId() { return id; } public double getsalary() { return Salary: public void setEmplyee(int id, String fn, String In, double sal) { Id=id; } FirstName=fn; LastName-In; Salary sal; Part 2: . Write a method that takes as parameter an array of type Employee and print on screen the Employee names who has the highest salary. • Write a program that do the following: ➤ Create an array of type Employee with size 5. ➤ Ask the user to read 5 employee information and store them inside the array. > Call the above methods.
Expert Answer:
Answer rating: 100% (QA)
Step1 Create Employee class with specified methods as below code as follows Code package comvirtusaProcureToPay import javautilArrayList import javautilScanner public class Employee private int Id pri... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
On May 20, Indy Landscapers received $3,000 cash in advance from one of its customers for lawn services it will provide in June. On June 4, Indy Landscapers provided the lawn services to its...
-
Pokmon GO continues to be one of the highest grossing mobilegames. In the game, you encounter wild pokemon, which you can attempt to catch. Each gamefor Pokemon uses slightly different rules for...
-
Demand function for a firm is given as P-100e, if the firm's average cost (AC) is AC 5+50, determine the firm's maximum profit. (5marks).
-
Your home business uses 570 square feet of your 2,850 square foot home. If household expenses for the year were $28,558, how much was alloted to your business? Amount invested
-
InteliSystems manufactures an optical switch that it uses in its final product. InteliSystems incurred the following manufacturing costs when it produced 70,000 units last year: Direct...
-
The city of Oak Ridge is evaluating three mutually exclusive landscaping plans for refurbishing a public greenway. Benefits to the community have been estimated by a landscaping committee, and the...
-
Construct a 95% confidence interval for 1. Exercises 610 refer to the following data set: x 25 13 16 19 29 19 16 30 y 40 20 33 30 50 37 34 37
-
The Coca-Cola Company is a global soft drink beverage company (ticker symbol = KO) that is a primary and direct competitor with PepsiCo. The data in Exhibits 12.1312.15 include the actual amounts for...
-
Jackson Inc. is preparing a flexible budget for 2017 and requires a breakdown of the cost of steam used in its factory into the fixed and variable elements. The following data on the cost of steam...
-
You have been hired as a consultant by Molycorp, a rare earth mineral mining company headquartered in Colorado. Your job is to evaluate a huge financing decision the company faces as part of its...
-
What is the importance of Financial Literacy Education and how may it impact the future of the youth?
-
1-Create a bulleted list of at least 7 governance and ethical problems you identified in this case. List the item then in a single sentence explain why it is a problem or issue. 2-Then choose the...
-
A company had the following account balances at year-end: Cash...... $30,000 Accounts receivable...... 32,000 Accounts payable...... 20.000 Fees earned....... 65.000 Rent expense....... 15.000...
-
Looking for help understanding financial sheets. If a company is unable to cover their current debts with current assets what are their options outside of offering equity or bonds? Are they forced to...
-
List all the factor pairs and find the sum of each pair. List all the factor pairs of 18 and find the sum of each pair. Note that because the required sum, -11 , is negative and 18 is positive, both...
-
The Television Bureau of Advertising publishes information on television ownership in "Trends in Television". The Table below gives the number of TV sets per household for 50 randomly selected...
-
Which pair of compounds has C (3)H (8) and C (3)H C (2)H (2) and C (2)H C (4)H (10) and C (6)H C (4)H (10) and C_2H_(5)
-
Shreemaya Hotel in !adore was facing a problem of low demand for its rooms due to off season. The Managing Director (MD) of the hotel, Mrs. Sakina was very worried. She called upon the Marketing...
-
You have a list of student IDs followed by the course number (separated by a space) that the student is enrolled in. The listing is in no particular order. For example, if student 1 is in CS100 and...
-
Implement your base class for the hierarchy from the previous exercise. Previous exercise. Consider a program that will keep track of the items in a schools library. Draw a class hierarchy, including...
-
Sometimes we would like a class that has just a single unique instance. Create a class Merlin that has one attribute, theWizard, which is static and of type Merlin. The class has only one constructor...
-
The following questions relate to circumstances resulting in departure from the auditor's standard report. Select the best response. a Which of the following will not result in modification of the...
-
For each of the following statements indicate whether the statement is true or false. a. The objective of the fourth standard of reporting is to enable users of financial statements to determine the...
-
The following questions relate to the auditor's responsibility with respect to litigation, claims, and assessments. Select the best response. a. When auditing contingent liabilities, which of the...
Study smarter with the SolutionInn App