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)
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?
|