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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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