subject
Engineering, 13.03.2020 02:01 eddsworldfrantic

• Problem 3: 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. txt
• Here is the content of datafile. txt which you will make (note 1 space only twixt entries):

Miller, Andrew 63700 5.5
Green, Shelia 55025.75 6.2
Abrams, Milton 57400 6.1
Smith, Stacey 72900 5.2
Charles, Ray 54095 6.3

• Note that there must be NO SPACES in the employee name. As a result, 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.

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, volleyballfun24
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
image
Engineering, 03.07.2019 15:10, EmilySerna
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
image
Engineering, 04.07.2019 18:20, cxttiemsp021
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
image
Engineering, 04.07.2019 19:10, nbug2121
Arigid tank contains 10 kg of air at 137 kpa (abs) and 21°c. more air is added to the tank until the pressure and temperature rise to 242 kpa (abs) and 32°c, respectively. determine the amount of air added to the tank. [r-0.287 kj/kg k]
Answers: 3
You know the right answer?
• Problem 3: Write a program to process employee pay increases.
• The data will be in a file...

Questions in other subjects:

Konu
Mathematics, 09.03.2021 21:40
Konu
Mathematics, 09.03.2021 21:40
Konu
Mathematics, 09.03.2021 21:40