Making a java program with in which i to create a main in


Making a Java program with in which I to create a main() in it and another code file with a separate class. Also needs creating objects of the class in the running program. The system handles employee records and processes payroll for them. Create a class called Employee that holds: first name, last name, monthly salary, and sales bonus. The class should have all the gets and sets and have a method to report the yearly salary.(monthly salary * 12 + the sales bonus.)

It cannot have spaces in variable names so you might call the first one firstName, first_name, fname or any other appropriate and legal variable name. The write up above is telling you the information to be stored in English, not java.]

Hard code the names, and salaries you are storing in the 2 employee objects

Need to create 2 objects of Employee in your main code class and display their names, monthly, and yearly salaries. Then give them each a 100 pay raise to their monthly salary. (so use the get() to read it out to a variable, add 100, then use the set() to store it back in) Then display their names, monthly, and yearly salaries again.

Solution Preview :

Prepared by a verified Expert
Business Economics: Making a java program with in which i to create a main in
Reference No:- TGS01601652

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)