Friday
April 18, 2014

Homework Help: programming

Posted by karl on Saturday, June 1, 2013 at 8:21pm.

b. Write a well-commented C++ program that reads data from the input file employee.txt. Each input line consists of last name, first name, base salary, total sales, and number of years of service.
Store the output in the file employees_payCheck.txt. Format your output to have two decimal places.

A sample output written to the output file employees_payCheck.txt is as follows:
Name: Andrew Thomas
Base Amount: ............. $ 2787.87
Bonus: ................... $ 2097.72
Gross Salary: ............ $ 4885.60
Federal Tax: ............. $ 574.06
Provincial Tax: .......... $ 251.61
CPP: ..................... $ 85.50
EI: ...................... $ 41.53
RRSP: .................... $ 363.98
Health Insurance: ........ $ 67.00
Net Pay: ................. $ 3501.93

You have to submit the output file employees_payCheck.txt along with your code (.cpp file) for this question.

Display the results on screen. Format your output to have two decimal places.
A sample output is as follows:

Name Base Salary Bonus Gross Salary Net Pay

Andrew Thomas $ 4885.60 $ 2097.72 $ 4885.60 $ 3501.93

Omar Taha $ $ $ $

Alice Smith $ $ $ $

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programming - Write a pseudocode program that asks the user for an integer ...
Programming - Write a program that would calculate and display the results for ...
programming - I am having trouble writing this program for java. can anybody ...
programming - Write a program that asks for and reads the price of a book (it ...
Programming - (i) What is binary tree (ii) Write a program to multiply any two ...
Computer Science - Write an Assembly program that reads in a number of cents. ...
programming - write a road race program for the event 5k Run and Walk Road Race ...
C++ programming - write a program C++ program and Use a recursive function that ...
programming - How to write a program to create a class roster using an array? ...
Computer programming - problem: Write a program that accepts your first name ...

Search
Members