subject

Create a class called employee that includes three instance variables—a first name (type string), a last name (type string) and a monthly salary (double). provide 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, do not set its value. write a test app 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
You know the right answer?
Create a class called employee that includes three instance variables—a first name (type string), a...
Questions
question
Mathematics, 25.09.2019 01:30
question
Social Studies, 25.09.2019 01:30
Questions on the website: 13722361