Write all getter and setter methods which are required

Assignment Help JAVA Programming
Reference no: EM131601360

Create a class named Employee. An employee has fields for first name, middlename, last name, employee id, the number of hours an employee has worked in amonth, and the hourly pay rate.

Write a program that performs the following tasks:

1. Write all getter and setter methods which are required.

2. Write three constructors, the first constructor is a no-argument constructor.The second constructor accepts first name, middle name, and last name of the employee as arguments. The third constructor accepts all the fields for an employee as arguments and sets the corresponding values.

3. Create two overloaded methods to calculate gross pay. The first method accepts hourly pay rate and the number of hours that employee has worked as String types. The second method accepts these two arguments as doubletypes. Both of these methods print the employee first name, last name, and gross pay on the screen.

4. Assume that the tax rate applied to the employee income is 12%, write another method that calculates and prints employee income after tax.

5. Create different objects of the Employee (5 or more) and set different values for each employee instance. Write a method that checks whether twoemployees have the same first name, middle name, and last name and prints the result on the screen.

6. Write a method to check whether an employee is eligible for a specific type of loan: to be eligible, an employee must have a minimum of $3,000 income per month (after applying tax) and must have worked for at least 120 hours in a month.

7. Write another class containing main method and test all the methods in your Employee class.Format your output to two decimal places where needed. Use JOptionPane class to read inputs.

Reference no: EM131601360

Questions Cloud

Discuss the function of homeland security : The Department of Homeland Security, or is this function shared among other governmental and nongovernmental agencies
Discuss the efficacy in professionalizing sport coaching : Write a paper to discuss the efficacy in professionalizing sport coaching as a career in Singapore. the various learning channels for sport coaches.
Create a class that represents a toaster : Create a class that represents a Toaster - Put the bread in the toaster - Turns off automatically
Discuss game plan prior to the shift in terrorist thinking : What does the author mean when he spoke of a game plan prior to the shift in terrorist thinking
Write all getter and setter methods which are required : Write all getter and setter methods which are required - Create different objects of the Employee
Write a letter to the graduate school of law enforcement : Writing sample 1000-1500 words in length emphasizing academic, nonacademic, and employment experiences relevant to the degree.
Describe the preventive measures needed to secure threat : Describe the preventive measures needed to secure your selected threat from occurring and the monetary cost associated with those measures
Management of information assets : Analyze globalization concerns and legal issues that must be considered in relation to the management of information assets and provides supporting rationale.
Define the class pictures : Implements draw() so that it draws some interesting picture. Each of these subclasses should have a constructor with a single Turtle parameter

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd