I am trying to write a program that has a .txt file. It includes 4 names, 4 pay rates and the hours they worked. I have to use the file and import the data and make a program that outputs each worker their pay rate, hours they worked and their pay for the time they worked. I do not understand how to use the information from the .txt file. How can I make a program where it outputs this.
I was trying to get it to look like this:
Pay rate: 6.00
Hours Worked: 40
Pay Amount: 240.00
Thanks for the help.