input and output

The idea here is to create a simple payroll system.

You will be provided with input that contains the hours worked, the hourly rate, and the employee's name. These will be listed one per line of input. You will need to read in two floats ( using scanf ), then use fgets to read the name as everything until end of line. You will need to remove the newline yourself, since fgets does not. The program must read from stdin and terminate at end of file.

You need to display the payroll information formatted like the example below ( I want the numbers to line up so you can read it ). You also must show the actual pay amount.
Here is a sample input file
Here is the output based on the above input

This is due on September 8th.

The Goals