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

  Write script in unix to monitor creation of pdf in directory

Write script in unix which monitors creation of .pdf or PDF file in current directory. Every minute it must display list of these filenames created after previous display a list.

  Two-dimensional array represent number of times bug reached

Two-dimensional array (N X M) must be utilized to represent number of times the bug reached each tile on floor. All cells of this array must be initialized to zero.

  Program of rainfall report

Write a PROGRAM that reads in from a ?le a starting month name, an ending month name,and then the monthly rainfall for each month during that period.

  Function to count number of times the given number occured

Write a main function to input 20 integers in the range of 1 to 6. Write a function to count the number of times the numbers 2 and 5 occur. The function should declare static variables count2 and count5.

  Write down pseudo code to find sentinel value

The total of both types have to be printed at end. Suppose 50 as sentinel value. Write down Pseudo Code to perform this function.

  Write program which reads three integer from input dialogs

Write down the program which reads three integer. Integers are entered from input dialogs and stored in variable num1, num2, and num3, respectively.

  Creating message box to display member name

Ddefine for your class is a method to design a message box to display member name, car year and model, and year member joined club.

  Select the names and average salaries for all departments

Employee table contains the following fields: ID, firstname, lastname, deptid, managerid, projectid.

  In the article thoughts on language design 2007 steele

in the article thoughts on language design 2007 steele suggests that structured programming techniques may not be

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Write a program that will generate an array

Write a program that will generate an array

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

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