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

  The recommended entry strategy into international markets

An expert system is used to determine whether the recommended entry strategy into international markets should be Investment (I), Contractual (C), or Export (E).

  Develop a c program

Develop a C program. The program should implement and test the following function: uint countOnes(uint hexNumber); The function will return the number of one bits in hexNumber.

  Potential vulnerabilities in making purchase with debit card

Recognoze any potential vulnerabilities in making purchase with debit card, and which area of CIA triad they apply to.

  Marie program that will input a variable

To develop a MARIE program that will input a variable number of user entered Decimal whole number grades, validating each one (0-100) in a subroutine

  How does a network based idps differ from a host based idps

How does a network based IDPS differ from a host based IDPS?

  Develop a program that will allow the district sales manager

You have been asked to develop a program that will allow the district sales manager to input each of the dealership's ID along with their four quarterly sales volumes for the year, calculate and display each quarter's rebate and the sales bonus fo..

  How many bits are used for memory addresses

How many bits are used for memory addresses

  Designing a game system

Suppose that you are designing a game system that responds to players' pressing buttons and toggling joysticks. The prototype system is failing to react in time to these input events.

  Describe how these tips are implemented

Describe how these tips are implemented and why these are important.

  Use a cluster to provide fault-tolerant computing

Describe the trade-offs between your solution and a single multiprocessor-based computer system solution.

  Maximum speedup-achieved by pipeline over non-pipelined unit

Non-pipelined system takes 200ns to process task. Determine the maximum speedup that could be achieved with pipeline unit over the non-pipelined unit?

  Add an overloaded assignment operator

Add an overloaded assignment operator, a copy constructor to the Cube class, and a printCube member function in the attached lab6_ex2_copy_operator_starter.cpp. This starter is incomplete, you have to fill the right stuff in the blank in order to ..

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