Create a class called employee

Assignment Help JAVA Programming
Reference no: EM13754885

Create a class called Employee that has the following attributes:

• Employee ID of type String
• First name of type String
• Last name of type String
• Job Position of type String
• Fulltime of type Boolean
• AnnualSalary of type double
• WeeklySalary of type float

For each of the attributes above create setter and getter methods. The WeeklySalary should be calculated by dividing AnnualSalary by 52.

Create a separate test class (EmployeeTest) with the main method and within the test class that instantiates2completely separate employees and demonstrates that the setter and getter methods are working.

Finally, either overload the toString method of Employee or create a separate Employee display method to print out your employee information.

Reference no: EM13754885

Questions Cloud

Multinational financial management : Imagine that you work for a corporation that is doing very well in the domestic market. Compare and contrast the overall pros and cons of accessing global markets, and recommend whether or not the company should consider such expansion. Provide a ..
Net realizable value of the accounts receivable : After the accounts are adjusted at the end of the year, Accounts Receivable has a balance of $215,000, Uncollectible Accounts Expense has a balance of $17,500, and Allowance for Doubtful Accounts has a balance of $12,500. What is the net realizabl..
Summarizes the of macroeconomic analysis : Write a 750-word paper that summarizes the of macroeconomic analysis - history of your chosen ETF, in terms of U.S. dollars, by checking or entering the ETF call letters or ticker symbol in a financial search engine such as Yahoo! Finance.
Create a java class called student : Create a Java class called student with the following instance variables: private String studentName
Create a class called employee : Create a class called Employee that has the following attributes: Employee ID of type String, First name of type String, Last name of type String
The implied multiplier associated with the stimulus package : If we assume that this growth resulted from the ARRA stimulus package, what was the implied multiplier associated with the stimulus package?
Dimensions of the business culture in the selected country : Determine the major elements and dimensions of the business culture in the selected country - Determine how these elements and dimensions are integrated by local residents conducting business in the country.
Government support of technological innovation : Research and identify how the U.S. government supports innovative technology activities in companies. Discuss at least two government sponsored programs and explain the positive effects these programs have on technology innovation in the private s..
What is the data type : What is the data type and What is the type of the parameter

Reviews

Write a Review

JAVA Programming Questions & Answers

  An int representing the value stored inside the node

In Java, code a doubly linked, sorted list (in ascending order). Each item of the list will just store an int. You need to code three classes: Nade, SortedList, and GroupProject. The Node class has three instance variables, all private: an int..

  Program produces 1000 integer ranging

Then your program produces 1000 integer ranging from 1to 10000 in the array and then sort them in ascending order and then print the result into data.txt file. (You may list integers separated by space or new line)

  Java program by array

Write a program that reads in a file that contains one integer per line. Each integer represents one location in the image. Assume that there are 64 rows and 64 columns in the image

  Calculates the product of the following sequence

Write a java code that calculates the product of the following sequence of numbers using for/loop and do/while/loop

  Java program to implement currency converter

Write a JAVA program that helps the user convert currency. The user will enter the amount in Kuwaiti dinars. The program will print the equivalent amount in US dollar and Euros count his change.

  Digital image processing using java

Digital image processing using java ..create plugin using Jedit and run it in imageJ

  Write program in java-calculate and display mortgage payment

Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage.

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Good idea to test a general class with a driver program

Question 1: Why is it a good idea to test a general class with a driver program before trying to use it? Question 2: What is the difference between black box and glass box debugging?

  How many states are there and draw and label the states

How many states are there and draw and label the states (with variable values) and transitions (with method names). Notice that all of the methods are total.

  1 gqueuea queue is an ordered collection of items in which

1 gqueuea queue is an ordered collection of items in which the removal of items is restricted to the fifo rst in rst

  Statements to print a label

Add the statements to print a label in the following format (the numbers in the example output are correct for input of $4.25 per pound and 41 ounces). Use the formatting object money to print the unit price and total price and the formatting object ..

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