Calculate the new pay and write to an output file

Assignment Help Computer Engineering
Reference no: EM132208523

write the program in C++

Write a program to process employee pay increases. The data will be in a file with the following format:

Employee_name current_salary percent_increase

Here is a sample file:

Miller,Andrew 63700 5.5

Green,Shelia 55025.75 6.2

Note that there must be NO SPACES in the employee name. You will be able to read using >>.

Your program will ask for the name of the file to process, and the name of the output file. Read the employee name, current salary, and increase.

Calculate the new pay and write to an output file with employee name and new salary. Format the numbers to display 2 decimal places.

Your output file should be formatted as shown below:

(output for the input file shown above)

Salary Increase Report

Employee New Salary

Miller,Andrew $67203.50

Green,Shelia $58437.35

Reference no: EM132208523

Questions Cloud

Would black income-wealth have been higher today : If immigrants are self-selected for high ability and tend to marry similar race individuals in the destination country-marriage homogamy-would black income.
Calculate the crc-15 value for a given file : Calculates the CRC-15 value for a given file . The program must run from the command line and take two (2) command line parameters.
Find her optimal consumption in both periods : Dawna lives for 2 periods - 0 and 1. She earns income I0 = 280 and I1 = 310 and consumes C0 and C1 respectively. She can either borrow or save.
Find the smallest and largest entries in the list : Write a program called SCAN to scan a list of unsigned bytes and find the smallest and largest entries in the list.
Calculate the new pay and write to an output file : Calculate the new pay and write to an output file with employee name and new salary. Format the numbers to display 2 decimal places.
Review problem of history of economic thought : "At times, smith's writing strike the reader as ambiguous, if not contradictory. This is particularly true of his analysis of value, specialization.
Read from a file and determines if a given n matrix : Write a program in C++ that reads from a file and determines if a given N matrix is a magic square, where N = 1 to 10
Enter a positive integer for massive reproduction of the pic : Write a program in C++ to reproduce the drawing below called using two user-defined functions (UDF) called tree and eat.
Ask for the weight of the package and the distance : Write a program in C++ that's asks for the weight of the package and the distance it is to be shipped, and then displays the charges.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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