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

  Write a method called sigma

Write a method called sigma that takes an int parameter n and returns the sum of all the integers from 1 to n (inclusive). For example, sigma(4) should return 10.

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  In this project you need to write a program called gf2java

in this project you need to write a program called gf2.java to implement the finite field gfpnwhere p is a prime number

  Implement bounded partial queue using signaling mechanism

Can you explain the reason? You can run the experiments on ecen5033.colorado.edu. Submit the code as well as experimental results - Implement both these schemes in Java. Each of the methods foo() and bar() just sleeps for 20 milliseconds.

  Objective to learn the use of comments and basic math

objective to learn the use of comments and basic math operators.create a new folder called assign21 under

  Evaluate an infix expression entered by the user

Spaces between tokens are allowed but not required. The program will repeatedly prompt the user for the value of x, displaying the value of the expression each time. When the user enters the letter q instead of a number, the program terminates.

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  Calculate the age of a person given the birthdate

Assemble a program to calculate the age of a person given the birthdate. The output should print the line "In 2014 you will be ''the age of the person" years old." Code needs to be in assembly language using motorola 68000.

  Driveway is a "last-in, first-out" stack. of course

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave. Write a program in Java that m..

  Prepare an application that creates object of the classes

Write a CarbonFootPrint with only a pure virtual getCarbonFootprint method -  Have each of your classes inherit from the abstract class and implement the getCarbonFootprint method to compute an appropriate carbon footprint for that class.

  Marketing necessary for practice-hospital to successful

Why is marketing necessary for a practice or hospital to be successful? What considerations should be taken into account when marketing health care services or products? (Hint think about all the medication ads you seen on tv or in magazines)

  Write a program that will process the data file

Write a program that will process the data file to read the file and calculate the number of assistants and the average salary and the number of associates and the average salary

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