Question 08 (10 points) Three employees in a company are up for a special pay increase. You are given a file. Data.txt.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 08 (10 points) Three employees in a company are up for a special pay increase. You are given a file. Data.txt.

Post by answerhappygod »

Question 08 10 Points Three Employees In A Company Are Up For A Special Pay Increase You Are Given A File Data Txt 1
Question 08 10 Points Three Employees In A Company Are Up For A Special Pay Increase You Are Given A File Data Txt 1 (35.03 KiB) Viewed 33 times
Question 08 (10 points) Three employees in a company are up for a special pay increase. You are given a file. Data.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 output.txt For each employee, the data must be output in the following form FirstName lastName updatedBalary. Format the output of decimal numbers to two decimal places. Here is a sample output for output.txt file. Andrew Miller 69079.36 Sheila Green 80446.11 Amit Sethi 79469,43
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply