Hello, this is my first programming class and I had to create a program as explained below, with the data provided as shown below the instructions. I think I have all the bases covered, except that the last line of data is not shown for the 5th person, only for the first four lines. Would you please help with how I can make sure all 5 lines of data are read? Thank you for your time!
instructions:
Write a program that will read the payroll file. It should output the name and paycheck amount to the console. Also output the total pay of all employees to a data file "totals.dat". The input file contains the name followed by hourly wage followed by hours worked.
Just wanted to say, thank yal, I kept trying and got it worked out. Yet, I am thankful for this forum, very helpful and insightful are the posts and replies. Have a great weekend yal!