Question: Redo exercise 5 but read the input from a file and print the output to a file. The input line represent the name of the

Redo exercise 5 but read the input from a file and print the output to a file. The input line represent the name of the person followed by the gross amount then number of unpaid days. The name of the person will be the file name. Input File Sample: Output File Sample (Salem.txt): Salem 10000 3 8 Gross Amount: 10000.00 AED Number of unpaid days: Number of overtime hours: 8 3 Retirement Plan: Health Insurance: Unpaid leave Housing Allowence: Transportation Allowence: Overtime payment: 500.00 AED 750.00 AGD - 1500.00.00 AED +2000.00 AED + 200.00 AED +600.00 AED Net Salary 10,050.00 AED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!