Programming project comprises writing a program that

Assignment Help Computer Engineering
Reference no: EM13469484

Programming project involves writing a program that computes the average salary for a collection of employees of different types. This program consists of four classes. The first class is the Employee class, which contains the employee's name and monthly salary, which is specified in whole dollars. It should have two methods:

1. A constructor that allows the name and monthly salary to be initialized.

2. A method named annualSalary that returns the salary for a whole year.

The Employee class has two subclasses. The first is Salesman. It has an additional instance variable that contains the annual sales in whole dollars for that salesman. It should have the same two methods:

1. A constructor that allows the name, monthly salary and annual sales to be initialized.

2. An overridden method annualSalary that returns the salary for a whole year. The salary for a salesman consists of the base salary computed from the monthly salary plus a commission. The commission is computed as 2% of that salesman's annual sales. The maximum commission a salesman can earn is $20,000.

Reference no: EM13469484

Questions Cloud

Would you usually recommend a clean install or an in-place : what upgrade options exist for moving from server 2008 r2 to server 2012? what limitations or caveats should be
Recent history illustrates that bullying is a growing : recent history illustrates that bullying is a growing problem among todays youth in the united states. amanda todd for
How did you approach the situation what steps or actions : in a 2-4-page paper describe a personal experience in which you or someone you know had to make a moral decision-for
Must have a begining middle and end this needs to be : human trafficking five page pager doubled spaced 12 point font two research resources and one academic source all
Programming project comprises writing a program that : programming project involves writing a program that computes the average salary for a collection of employees of
How much thermal energy is evolved by the reaction in a : how much thermal energy is evolved by a reaction in a calorimeter in which the temperature of the calorimeter and water
How does terrorism differ from other forms of violence how : how does terrorism differ from other forms of violence? how does motivation distinguish terrorist acts from other
1000-1500 word memo details your supervisor mr williams : 1000-1500 word memo details your supervisor mr. williams explains that you and one of the other senior partners will be
What changed jeffrey wigands mind in agreeing to do the : 1. what changed jeffrey wigands mind in agreeing to do the interview with 60 minutes? discuss2. did you learn something

Reviews

Write a Review

Computer Engineering Questions & Answers

  The printed newspaper''s popularity is declining

Some people lament the fact that the printed newspaper's popularity is declining so alarmingly that some of the children of the new generations have never read (or will read) a printed newspaper.

  Compare x.509 pki and pgp pki in different aspects

Compare X.509 PKI and PGP PKI in different aspects, e.g. Certs format, user identification, key management, scalability, usage, applications, business models, etc.

  Assume that intlist1 and intlist2 are list containers

assume that intList1 and intList2 are list containers.

  Assume that you are a cto of a retail organization that has

assume that you are a cto of a retail organization that has adopted the rfid technology. discuss the advantages and

  Use the ezplot to graph the following parametric funtions

Use the ezplot to graph the following parametric funtions.

  Explain the averaging algorithm

Explain the averaging algorithm

  How to utilize data mining tools and techniques

How to utilize data mining tools and techniques

  What are three levels of concurrency in programs

can someone please explain to me what are the three levels of concurrency in programs.

  Write down functions to calculate the mean, variance

If x denotes the mean of a sequence of numbers x1, x2,.....xn, the variance is an average of the squares of the deviations of the numbers from the mean, and the standard deviation is the square root of the variance.

  How to create a javascript program

Create a JavaScript program that declares and prints an array that contains at least 20 of your favorite songs. For each song, determine the best means for storing the year it was published.

  Bookstore information management system

State the possible objects in bookstore operation involving their attributes and methods.Recognize the possible use cases and actors.

  How to suggest a solution for the scenario of warehouse

How to Suggest a solution for the scenario of warehouse? Assume that the company has accumulated 20TB of data and that 20 percent per year growth is expected in size of Data Warehouse. Suggest a solution for this scenario with respect to software,..

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