subject

Three employees in a company are up for a special pay increase. you are given a file, say salarydata. txt, with the following data:

miller andrew 65789.87 5
green sheila 75892.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 5%. write a program that reads data from the specified file and stores the output in the file salaryoutput. 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.

to solve this problem, you must create the input data file manually. to do this in codeblocks, go to the file menu and select new and then empty file. a popup will ask if you want to add this file to the project. when you say yes, you will have to name the file. it is best to put a .txt extension on the file name. this type of file is called a flat file. a flat file is similar to a spread sheet in that all the fields (columns) contain the same type of information and the records (rows) contain different data values.

turn in:

analysis identifying program inputs, outputs, equations, and constants.

design including human algorithm and pseudocode algorithm

test data

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
You know the right answer?
Three employees in a company are up for a special pay increase. you are given a file, say salarydata...
Questions
Questions on the website: 13722361