I'm having a problem with my code. It is getting the input from the text file but it is not doing the calculations I'm trying to do. If there is something wrong with this I would be very grateful if you could tell me. Thanks!!
Your program works, but with knowing what the "data file" looks like it is hard to say if it is working correctly. The lines "rev = rev * finalInt" "rev" will always be zero which may not be what you want.