I am confused as to what to put for the code lines inFile >> lastname >> firstname >> currentSalary    >> percentPayIncrease;. and outFile << firstname << " " << lastname << " " << currentSalary    * (1 + percentPayIncrease / 100.00); outFile << endl; my question is would I write the code as is or whould I put the givin values in place i.e. Miller Andrew 65789.87 5?

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

I am confused as to what to put for the code lines inFile >> lastname >> firstname >> currentSalary

   >> percentPayIncrease;.

and outFile << firstname << " " << lastname << " " << currentSalary

   * (1 + percentPayIncrease / 100.00);

outFile << endl;

my question is would I write the code as is or whould I put the givin values in place i.e. Miller Andrew 65789.87 5?

inFile >> lastname >> firstname >> currentSalary
> percentPayIncrease;
//statement to compute and output data for the
//first employee
outFile << firstname << ""<< lastname
« ""<< currentSalary
* (1 + percentPayIncrease / 100.00);
outFile << endl;
Transcribed Image Text:inFile >> lastname >> firstname >> currentSalary > percentPayIncrease; //statement to compute and output data for the //first employee outFile << firstname << ""<< lastname « ""<< currentSalary * (1 + percentPayIncrease / 100.00); outFile << endl;
b Three employees in a company a X
+
A bartleby.com/solution-answer/chapter-3-problem-5pe-c-programming-from-problem-analysis-to-pr. *
Apps
Dashboard M Baker College Mail © Home | My Baker ang Apparel, Gifts & Tex. b My Solutions | bartl. O Visual Studio Older.
=
bartleby
Q Search for textbooks, step-by-step explanations to hom...
Ask an Expert
Engineering / Computer Scie.. / C++P... / Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex51
: Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex5Dat
C++ Programming: From Problem Anal.
C++
8th Edition
D. S. Malik
Find a
Publisher: Cengage Learning
ISBN: 9781337102087
Chapter 3, Problem 5PE
Textbook Problem
Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex5Data.txt, with the
following data:
Miller Andrew 65789.87 5
Green Sheila 758 92.56 6
Sethi Amit 74900.50 6.1
Each input line consists of an employee's last name, first name, current salary, and percent pay increase. For example,
in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87,
and the pay increase is 54. Write a program that reads data from the specified file and stores the output in the file
ch3_Ex50utput.dat. For each employee, the data must be output in the following form: firstName lastName
updatedsalary. Format the output of decimal numbers to two decimal places.
Transcribed Image Text:b Three employees in a company a X + A bartleby.com/solution-answer/chapter-3-problem-5pe-c-programming-from-problem-analysis-to-pr. * Apps Dashboard M Baker College Mail © Home | My Baker ang Apparel, Gifts & Tex. b My Solutions | bartl. O Visual Studio Older. = bartleby Q Search for textbooks, step-by-step explanations to hom... Ask an Expert Engineering / Computer Scie.. / C++P... / Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex51 : Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex5Dat C++ Programming: From Problem Anal. C++ 8th Edition D. S. Malik Find a Publisher: Cengage Learning ISBN: 9781337102087 Chapter 3, Problem 5PE Textbook Problem Three employees in a company are up for a special pay increase. You are given a file, say ch3_Ex5Data.txt, with the following data: Miller Andrew 65789.87 5 Green Sheila 758 92.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee's last name, first name, current salary, and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87, and the pay increase is 54. Write a program that reads data from the specified file and stores the output in the file ch3_Ex50utput.dat. For each employee, the data must be output in the following form: firstName lastName updatedsalary. Format the output of decimal numbers to two decimal places.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning