Question
Create a project with a main executable class as well as an employee class. The employee class should have fields for first name, last name,
Create a project with a main executable class as well as an employee class. The employee class should have fields for first name, last name, and annual salary. Each of those properties should also have associated get and set methods. The class should also have a constructor that will take the first name and last name as parameters.
The class should also have a method that returns the monthly salary, and a method that returns the biweekly salary.
In your main class, ask the user for employee first name, and then last name. Then ask the user for the employee's annual salary.
Create a new instance of the employee class with the employee's first name and last name. Then set the employee's annual salary. Display the employee's name and both the monthly and the bi-weekly salary amounts.
in java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started