Expand the payroll program to combine two sorting techniques

Assignment Help Programming Languages
Reference no: EM13950482

Create an Employee class for a basic payroll program to compute the net pay salary of hourly based employees. Your program should also find the average net pay for a small company. To define the class, include the appropriate data members, member functions, and access modifiers. For simplicity, use a constant tax rate of 30% to compute the tax amount. Employees that work over 40 hours will receive overtime pay of one and a half of their hourly rate for overtime hours worked. The output should display the name of each employee, hours worked, hourly rate, overtime pay, regular (gross) pay, tax amount, and net pay. The average net pay of all employees should also be displayed.

Have the Employee Payroll program include hourly based and salary based employees. This phase uses an array of employee objects, inheritance for different classes of employees, and polymorphism for salary computation. The 52 week yearly salary as well as number of overtime hours worked by a salary based employee is given). For salary based employees, to find the regular (gross) pay for a week, divide the salary by 52. To compute the overtime pay for a salary based employee, first find the hourly rate by dividing the gross pay by 40, and then compute overtime pay. For every employee, overtime pay, tax amount, and net pay must also be computed. In addition, the program should find the minimum and maximum net pay of all employees as well as sort the employees based on their net pay (ascending order).

Expand the payroll program to combine two sorting techniques (Selection and Exchange sorts) for better efficiency in sorting the employee's net pay.

Ok, so what i have so far for the class is:

#include <iostream >
#include <fstream >

using namespace std;

class Employee {
public:
Employee(string name, double rate, double gross, double net, int hours); //Name, Pay Rate, Gross Pay, Net Pay, Hours worked

string getName();
double getrate();
double getgross();
double getnet();
int gethours();

private:
string name;
double rate;
int hours;
double gross;
double Net;
};

Employee::Employee(string name, double rate, double gross, double net, int hours){

}
string Employee::getName()
{
return name;
}
double Employee::getrate()
{
return rate;
}
double Employee::gethours()
{
return hours;
}
double Employee::getgross()
{
return ((rate * (hours - 40)) + ((hours - 40) * 1.5))
};

double Employee::getnet()
{
return (((rate * (hours - 40)) + ((hours - 40) * 1.5)) * .3)
};

void main(){

}

But i have no idea if the class portion is correct, much less how to incorporate it into an array (Employee[]?)

Reference no: EM13950482

Questions Cloud

Gain specific knowledge about the marketing activities : Visit any retail establishment of your choice in order to gain specific knowledge about the marketing activities of the operation. Provide a 2-3 page report on your visit using at least two references (one reference to be the textbook) to support ..
Description of the effects each form of technology : Use the following table to identify at least five different forms of technology that have affected communication in the workplace. Include a 100- to 150-word description of the effects each form of technology has had on communication
Research and analysis of company information : What, if any, involvement should the NSW government have in the resolution of the problems - Responses should include relevant logistics management theories - referenced and their application explained - do not just quote or paraphrase the theory
Neglecting the effects of motion and gravity : The combustion gases can be modeled as air behaving as an ideal gas. There is no significant heat transfer from the boiler to its surroundings. Assuming steady state and neglecting the effects of motion and gravity, determine
Expand the payroll program to combine two sorting techniques : Expand the payroll program to combine two sorting techniques (Selection and Exchange sorts) for better efficiency in sorting the employee's net pay.
Create an imaginary profile of a family : Create an imaginary profile of a family of three to four members providing details such as sex, age, health status, nutritional status, and medications for each member of the family
Rowland construction company : Rowland Construction Company? Ford Improvement Company?
Existing product and identify its target market : Select an existing product and identify its target market. Describe how each variable of the marketing mix (product, price, place, and promotion) is being executed. Address at least three elements of each variable.Focus of The Marketing Mix
Determine the exergetic efficiency : For the turbine-compressor arrangement of Problem 6.164, determine the exergetic efficiency for (a) the turbine, (b) the compressor, (c) an overall control volume enclosing the turbine and compressor. Let T0 5 300 K.

Reviews

Write a Review

Programming Languages Questions & Answers

  Arithmetic and application of summaries

Write some R code that carries out computation, but do it with a single R expression that contains no commas (,) and no braces ({}).

  Prepare console application to examine contents of text file

Prepare the C++ console application which examines the contents of a text file. Your program must count the number of: * lines (hint: use getline).

  You are an analyst for a large public pension fund and you

you are an analyst for a large public pension fund and you have been assigned the task of evaluating 2 different

  Define procedural or algorithmic programming what is

what is procedural or algorithmic programming? what is object-oriented programming? what is the role of code reuse in

  Program to display weekly payroll report

Write down a program to display a weekly payroll report.

  Problematic programming situation

Suggest one example of a problematic programming situation or scenario that the use or implementation of a loop structure could resolve. Justify your response.

  Wysiwyg editors can be used to learn html

What about fact that WYSIWYG editors can be utilized to learn HTML? As you can usually jump back and forth from their own image.

  Explaining steps to execute branch instruction

Sketch a flow chart which carefully explains steps that little man follows to execute a branch instruction.

  How can you use a hash function

How can you use a hash function to evaluate duplicate files (even when the file name is changed) - Give the answer of given question and also provide details.

  Design a flowchart that is also a fully functional program

Using Visual Logic, design a flowchart that is also a fully functional program. According to your design, the program must: Continually accept data regarding the purchase of fruit until a sentinel value is entered.

  Conduct experimental study on free and damped vibrations

Conduct an experimental study on the free and damped vibrations - Prepare a report with made for an experiment

  Use two-dimensional array in javascript to solve problem

Using javascript. Use a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5).

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