Exercise#6: Redo exercise 5 but read the input from a file and print the output to a file. The input line represent the
Posted: Fri Mar 04, 2022 9:36 am
Exercise#6: 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