Employee, which has three private class variables

Assignment Help Basic Computer Science
Reference no: EM13664728

Create a class Employee, which has three private class variables (Name, Address, PhoneNumber), access methods to get and set each of these properties, and two constructors (one 0-argument constructor and the second setting property values to specific values passed to the constructor).

Create a class SalaryEmployee, which extends Employee and adds one more property (Salary) with proper set and get methods. Add one more method ByWeeklyPay of type double.

Create a class HourlyEmployee, which extends Employee and adds two more properties (HourWage and HoursWorked) with relevant get and set methods. Add one more getPayAmount method.

Create a class UseEmployee, which will instantiate objects of each of the classes above (Employee, SalaryEmployee, HourlyEmployee) with particular values (take any values of the proper data type) and display the information on all properties of an Employee object created, a SalaryEmployee object created, and an HourlyEmployee object created.

Compile, run, and check the results. Submit the following:

1.The source file (If more than one file has been created, zip them into one .zip file for posting.)

2.The UML class diagram illustrating class hierarchy

Reference no: EM13664728

Questions Cloud

Find the average force exerted on the machine gun mount : A machine gun, of mass 35.0 kilogram, fires 50.0-g bullets, with a muzzle velocity of 750 m/s, at the rate of 300 rounds per minute. Find the average force exerted on the machine gun mount
Force shutdown a pc : Force shutdown a PC
Find the magnitude of the average force the bat exerted : A 2.0 kilogram softball is pitched to you at 20 m/s. You hit the ball back along the same path, and at the same speed. find the magnitude of the average force the bat exerted
Compute the focal length of the mirror : A 2.0 centimeter tall object is placed in front of a mirror. A 1.0 tall upright image is formed behind the mirror, 180 from the object. Find what is the focal length of the mirror
Employee, which has three private class variables : Create a class Employee, which has three private class variables (Name, Address, PhoneNumber), access methods to get and set each of these properties, and two constructors (one 0-argument constructor and the second setting property values to s..
Find what would have been this height : A 3.00 kilogram model rocket is launched straight up. It reaches a maximum height of 1.00 x 10^2 meter above where its engine cuts out, Find what would have been this height if there were no air resistance
Determine the kinetic and potential energies of an electron : A hydrogen atom initially in its ground state (n=1) absorbs a photon and ends up in the state for which n=3. Determine the kinetic and potential energies of an electron in the ground state of the hydrogen atom
What would have been the angular displacement of the engine : A car is traveling along a road, and its engine is turning over with an angular velocity of +230 rad/s. Determine what would have been the angular displacement of the engine if its angular velocity had remained constant at the initial value of +230 ..
Calculate the change in the block mechanical energy : A 14 kilogram block is accelerated at 2.5 m/s2 up a frictionless plane inclined at 9.3 degree to the horizontal, with the speed increasing from 11 m/s to 27 m/s. Calculate the change in the block mechanical energy

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the addressing mode of the instruction

What is the addressing mode of the instruction

  Write piece of code uses a loop to compute and precending

The Fibonacci numbers are a sequence of integers in which the first two elements are 1, and each following element is the sum of the two preceding elements

  Risks of participating in social networking services

Much has been written about the benefits and risks of participating in social networking services such as Facebook and MySpace. What are some of the controversies associated with these forums?

  Evaluate the cost of materials

Evaluate the cost of materials

  How applications of technology used to overcome barrier

Explain how applications of technology could be used as the means to overcome each of these barriers. Write at a minimum the applications which use word processing.

  Both the userid and the person''s full name

a report and not just a listing:The report might be created with awk but it should have a heading. it should list both the userid and the person's full name (a person's fullname can be found in /etc/passwd file)

  Which data input appears on output y

View a datasheet function table for a 74151 device. Using Quartus pin names, assume the chip is enabled and C = 1, B = 0, and A = 0. Which data input appears on output Y?

  Implement one class called parkingmeter

implement one class called parkingmeter, that is a simple model of a coin operated parking meter

  Write a script to help users calculate compressed file size

Develop a small console program driven by a text menu (see the sample screenshot below):? It displays a simple menu with 4 items indicated by number 1-4.? Users will enter number 1 to 4 to run some commands.?

  The best strategy to take when testing written code

What do you think is the best strategy to take when testing written code? Explain.

  Pre-processes the data items by adding dummy keywords

The data owner pre-processes the data items by adding dummy keywords so that each keyword matches the same number of data items

  The project consists of multiple phases

The project consists of multiple phases.

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