Save all employees entered on the keyboard

Assignment Help C/C++ Programming
Reference no: EM131103100

1. Save all employees entered on the keyboard into a file called "Employees.dat".

2. After the calculation of each employee payment is done, instead of printing all of the employee payments on screen save him or her information into a file called "Payments.dat".

3. Enter five to ten samples of employees.

Write a program that calculates weekly payment. The program will ask the user full name, ID number (make one up), and hours worked. An hourly worker's gross pay is basically his/her work hours that week multiplied by his/her regular hourly pay rate. However, after the first 40 work hours of the week, each additional work hour is paid at an overtime rate that is 1.5 times of the regular hourly rate. For example if the user's hourly rate is $15 and worked for 48 hours, the additional 8 hours will be paid at $22.50/hour. Use 5% as tax deduction. The program will calculate and display the net payment. Use loop to allow users to enter multiple employees. Your program should include four functions as shown below: //This function gets employee information void getEmployee(string &name, string &id, double &hoursWork, double &ratePerHour); //This function calculates and returns gross pay double calculateGrossPay(double hoursWork, double ratePerHour); // This function calculates and returns net pay double calculateNetPay(double grossPay, int taxRate); // This function prints name, id, and net pay void printEmployeePayment(string name, string id, double netpay); Your main() should utilize the four functions above by calling them in your program to input, calculate and print the weekly payment. can you show that it works and runs. I do not ant to use float can you use double thanks.

This is wht i have so far

#include

#include

#include

using namespace std;

// This function will obtain employees information

void getEmployee(string &fullname, string &id, double &hw, double &rph)

Reference no: EM131103100

Questions Cloud

Order description analysis of womens athletic footwear mark : 1. Introduction and product/service description (definition of product category, salient attributes, surrogate cues, relevant costs, general information)
Calculates and prints a students letter grade : Write the program that calculates and prints a student's letter grade and a message based on the average of three test grades
Present some arguments to convince him that accounting data : The chairman of the board of directors of the company for which you are chief accountant has told you that he has little use for accounting figures based on cost.
Estimates an unknown population parameter : Stat 31 Fall 2010 - Homework 1. Statistics and parameters A statistic is a quantity that is calculated from a sample. Give an example of a statistic that estimates an unknown population parameter
Save all employees entered on the keyboard : After the calculation of each employee payment is done, instead of printing all of the employee payments on screen save him or her information into a file called "Payments.dat".
Assignment on intellectual property rights issues : With the increased use of the Internet and the expansion of the global economy, the protection of intellectual property rights has become increasingly difficult.
Track of the ticket sales : Another thing is tht the program should give the user an option to see how many seats havebeen sold, seats available in each row, and seats available in thewhole theater.
Provide a brief description of an organization : Provide a brief description of an organization where you currently work, would like to work, or one in which you have an interest that you have chosen for this assignment.
What is the basic accounting problem created by the monetary : What is the basic accounting problem created by the monetary unit assumption when there is significant inflation? What appears to be the FASB position on a stable monetary unit?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Implement random class for generating pseudo-random numbers

Implement a Random class for generating pseudo-random numbers. Implement a Person class. Each object of this class will represent a human being.

  Problem 1greatest common divisor write code for a recursive

problem 1greatest common divisor write code for a recursive implementation of euclids algorithm for searching the

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Objective1 to give students practice in calling and writing

objective1. to give students practice in calling and writing their own functions.2. to give students practice in

  Create a funcion called max

Create a funcion called max().

  Write the copy-array procedure by a function

Write the C++ statement that dynamically creates an array of 10 components of type int and num contains the base address of the array

  Implement uniform random number generator

Implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000. Try to use insertion sort to sort them. Compare the running time of two versions of the insertion sort.

  Which of the following is a pure abstract function

Which of the following is a pure abstract function?

  The limit on the amount of wage income

If the government raised the limit on the amount of wage income that is subject to the F.I.C.A. tax, this would: A. Move the Lorenz curve further from the line of income equality  B. Have no effect on the Lorenz curve

  Design a modular program that asks the user

A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Design a modular..

  An essential component of compromised to a resource

1. true or false? an essential component of compromised to a resource is that the situation resulting in the compromise was motivated by malice. A.true B.false

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