Question: programming language is java Ohjective: This lab was desgnedfore pragramming onepts from Chapter 3, yau will Creating a class drclaration Declaring instance variahles. Declaring se

programming language is java Ohjective: This lab was desgnedfore pragramming onepts fromprogramming language is java

Ohjective: This lab was desgnedfore pragramming onepts from Chapter 3, yau will Creating a class drclaration Declaring instance variahles. Declaring se and get methods Writing a tost application ta demanstrate the capahilities of another ass Description of the Problem Ising only progrmming terhniques creatr a classcalld Imp that includes three pirs of information as instance variables-a first name type Sting], a lastname ltype srng) and a monthly salary (type cou:l). Your class should have a constructor that initiallzes the three instance variables. Provide a wand gat methad for eath instance variable. If the monthly salary is not positive, set it tri nil, writa test applicatian named 'yHolest that demostrates class imreren.'s capahili ties. Create four innatrew objects and display the yearly salary for each Employee. Then give each Empoyee a 10% raise and display each Employse's yearly salary again syour name for employer 1) sample Outpur Emaloric2.Sn mith, reat Salary. 37320.00 EmaloeL.RobrJon,eany zlery. 37950.00 Emalore3. Themas Clark, Yearry 4236000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!