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

  Percent of error in measurement of the defective scale

Skeeter, the dog, weighs exactly 36.5 pounds. When weighed on a defective scale, he weighed 38 pounds. (a) What is the percent of error in measurement of the defective scale to the nearest tenth?

  Determining the corresponding node labels

Use binary reflected Gray code (RGC) to determine how a 16-node linear array can be mapped to a 4-D hypercube. You must derive the 4-bit Gray codes and the corresponding node labels of a 4-D hypercube. Draw the mapping of the 16-node linear array ..

  Calculate the total number of days

Worker A can do a job in 15 days while worker B can do the same job in 20 days. Write a program to calculate the total number of days required to finish the work if both the workers work simultaneously.

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  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.

  One time for the entire number set

You must run your program one time for the entire number set. Test for EOF (or use the function feof()) to know when to stop processing. You are to determine if each integer read is prime or not, and output the result to stdout

  Include the iostream, fstream, string, and cctype libraries

1. Include the iostream, fstream, string, and cctype libraries in your program.

  What will be the output of the program

what will be the output of the program?

  Create a data dictionary

Sequential Logic Structures are the most commonly used logic structures to accomplish a task with a sequence of steps. Using the example from Phase 1 of an online retail business, identify the sequential logic structure to capture the payment info..

  Program should read in the file and place periods

Create a C++ program that will read this file and correct errors in the English syntax of the file. The program should Read in the file and Place periods at the end of all sentences throughout this file

  Explain one 1 scenario not mentioned in the textbook in

q1. describe one 1 scenario not mentioned in the textbook in which it would be advantageous for you to use a definite

  Explain characteristics unique to object-oriented programing

The machine language treats a message as bits while object-oriented programming language treats every message as an object. Do you agree with this statement? Why or why not? Explain the characteristics unique to object-oriented programming and how..

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