Write code for the missing sections

Assignment Help Programming Languages
Reference no: EM131018026

Use the following code outline as a starting point for your final project. You will need to correct any errors you find and write code for the missing sections.

#include <iostream>
#include <string>
#include <iomanip>

using namespace std;

//
//CLASS DECLARATION SECTION
//

class EmployeeClass {
public:
void ImplementCalculations(string EmployeeName, double hours, double wage);
void DisplayEmployInformation(void);
void Addsomethingup (EmployeeClass, EmployeeClass, EmployeeClass);
string EmployeeName ;
int hours ;
float wage ;
float basepay ;
int overtime_hours ;
float overtime_pay ;
float overtime_extra ;
float iTotal_salaries ;
float iIndividualSalary ;
int iTotal_hours ;
int iTotal_OvertimeHours ;
};

int main()
{ system("cls");

cout << "\nWelcome to the Employee Pay Center\n\n" ;

/*
Use this section to define your objects. You will have one object per employee. You have only three employees.
The format is your class name and your object name.
*/

/*
Here you will prompt for the first employee's information.
Prompt the employee name, hours worked, and the hourly wage. For each piece of information, you will update the appropriate class member defined above.
Example of Prompts
Enter the employee name =
Enter the hours worked =
Enter his or her hourly wage =
*/

/*
Here you will prompt for the second employee's information.
Prompt the employee name, hours worked, and the hourly wage. For each piece of information, you will update the appropriate class member defined above.
Enter the employee name =
Enter the hours worked =
Enter his or her hourly wage =

*/

/*
Here you will prompt for the third employee's information.
Prompt the employee name, hours worked, and the hourly wage. For each piece of information, you will update the appropriate class member defined above.
Enter the employee name =
Enter the hours worked =
Enter his or her hourly wage =

*/

/*
Here you will implement a function call to implement the employ calcuations for each object defined above. You will do this for each of the three employees or objects.
The format for this step is the following:
[(object name.function name(objectname.name, objectname.hours, objectname.wage)] ;
*/

/*
This section you will send all three objects to a function that will add up the the following information:
- Total Employee Salaries
- Total Employee Hours
- Total Overtime Hours

The format for this function is the following:
Define a new object.
Implement function call [objectname.functionname(object name 1, object name 2, object name 3)]
/*

} //End of Main Function


void EmployeeClass::ImplementCalculations (string EmployeeName, double hours, double wage){
//Initialize overtime variables
overtime_hours=0;
overtime_pay=0;
overtime_extra=0;

if (hours > 40)
{

/*
This section is for the basic calculations for calculating overtime pay.
base pay = 40 hours times the hourly wage
overtime hours = hours worked - 40
overtime pay = hourly wage * 1.5
overtime extra pay over 40 = overtime hours * overtime pay
salary = overtime money over 40 hours + your base pay
*/

/*
Implement function call to output the employee information. Function is defined below.
*/


} // if (hours > 40)
else
{

/* Here you are going to calculate the hours less than 40 hours.
Your base pay is = your hours worked times your wage
Salary = your base pay
*/

/*
Implement function call to output the employee information. Function is defined below.
*/

} // End of the else

} //End of Primary Function

void EmployeeClass::DisplayEmployInformation () {
// This function displays all the employee output information.

/*
This is your cout statements to display the employee information:
Employee Name ............. =
Base Pay .................. =
Hours in Overtime ......... =
Overtime Pay Amount........ =
Total Pay ................. =
*/

} // END OF Display Employee Information

void EmployeeClass::Addsomethingup (EmployeeClass Employ1, EmployeeClass Employ2){
// Adds two objects of class Employee passed as
// function arguments and saves them as the calling object's data member values.

/*
Add the total hours for objects 1, 2, and 3.
Add the salaries for each object.
Add the total overtime hours.
*/

/*
Then display the information below.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Total Employee Salaries ..... = 576.43
%%%% Total Employee Hours ........ = 108
%%%% Total Overtime Hours......... = 5
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/
} // End of function.

Reference no: EM131018026

Questions Cloud

Basic differential circuit : Consider the basic differential circuit in which the transistors have β = 100 and VA =100 V, with I = 0.2 mA, REE =500 kΩ, and RC =25 kΩ. The collector resistances are matched to within 1%. Find:
Do you think ids like snort can easily detect covert channel : Do you think IDS like Snort can easily detect a covert channel? For example, can you write an effective set of Snort rules to prevent any information leak through a covert channel?
Imported asian candies made from gelatin : Imported Asian candies made from gelatin and fruit in the form of little cups that resemble coffee creamer containers have been identified as a choking hazard for small children and linked to dozens of choking deaths around the world.
Prepare the adjusting entry to record these bonds : Assume that the fair value of the bonds at December 31, 2014, was $1,430,000. These bonds are classified as available-for-sale securities. Prepare the adjusting entry to record these bonds at fair value.
Write code for the missing sections : Use the following code outline as a starting point for your final project. You will need to correct any errors you find and write code for the missing sections.
Encroachment agreement : What would be the content of such an "encroachment agreement"? What if only Mr Ferris's home was leaning-would the agreement look different? Is the "reduced market" a result of more than structural worries?
How many luxury sport utility vehicles will be demanded : Suppose that the government decides that the current price of luxury sport utility vehicles is too high. The government passes a price ceiling for this market where the price of a luxury sport utility vehicle is set at $30,000 per vehicle. Given t..
What would happen to his budget line : What would happen to his budget line if  the price of good X decreases to $1.  Draw this new budget line on your graph and label it Budget Line - Find the point  that maximizes the consumer's utility if the consumers income
Differential gain ad : Consider a bipolar differential amplifier that, in addition to the collector resistances RC, has a load resistance RL connected between the two collectors. What does the differential gain Ad become?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program for grocery that reads products data

Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price.

  Analyze problem develop a solution

Analyze each problem, develop a solution and implement your solution. Copy and paste your program and a sample output below each problem.

  Develop the application to show coffee customer orders

Develop the application which shows the total pounds of coffee customer orders, sales tax, and total price of order. Write down the name the solution, project, and form file Jason Coffee Solution, Jason Coffee Project.

  Occurrence of the longest substring of capital

Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Sketch program flowchart for program to compute average

Sketch a program flowchart for a program that will compute the average of five grades. Input five grades and output the aveage.

  Advantageous benefits of using object-oriented design

Select an organization that you are familiar with and determine the most advantageous benefits of using object-oriented design in this organization and state why

  How can two cubical dice be labeled using number

Alice and Bill flip a fair coin until one of the respective patterns A = HHT or B = HTT appears for the first time (and then the corresponding player wins).

  Write procedure list-records whihc returns list of records

Write a procedure called list-records which returns a list of all records by artist from a list of records containing several artists.

  Develop the algorithms needed for designer robot

You have been hired as a system designer to develop the algorithms needed for a designer robot that can paint different patterns on the floor based on the commands it receives.

  General layout for a web-based source document

Suggest the general layout for web-based source document that prospective sellers could use to explain their antiques. Information must include the user ID, password, item, dimensions, origin, condition, and asking price.

  Method to pass string argument and returns first line

Write a method, getFirstLine, that is passed a String argument and that returns the first line.

  Implement to do a matrix-matrix product

Implement and check the time to do a matrix-matrix product of a 1000x500 matrix with a 500x800 matrix of floats sequentially and using 1,2,3,4, and 8 threads on dual and quad core processors.

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