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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:30, alexandramendez0616
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, anamatiascamaja
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
image
Computers and Technology, 23.06.2019 20:40, aurikmah2005
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
image
Computers and Technology, 23.06.2019 23:40, dudedude1593
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
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 in other subjects:

Konu
Computers and Technology, 30.06.2019 14:00