Solution to Create a class called Employee that includes three pieces of information as instance variables—a first … - Sikademy
Author Image

Archangel Macsika

Create a class called Employee that includes three pieces of information as instance variables—a first name (typeString), a last name (typeString) and a monthly salary (double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to 0.0. Write a test application named employeeTest that demonstrates class employee’s capabilities. Create two employee objects and display each object’s yearly salary. Then give each employee a 10% raise and display each employee’s yearly salary again.

Hmmm... This is a tough one :(

We need the Motivation and Support! 💪

Our expert tutor in charge of answering this question
needs a cup of coffee to get pumped!

Buy her a cup or more ☕

And unlock the solution to this question.

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-3-stid-9-sqid-157-qpid-12