I posted this on devshed.com's forums, but I have gotten no replies :sad: .
I am working on a program that reads data values from a file and uses them to compute the output. It is a tapemaker program that figures out how many minutes and seconds the songs take up on the tape. I have the data reading and printing done (it prints out in columns). The problem I am having is the process of converting 60 seconds to a minute when the seconds count goes over 60 (to add to the total minutes). The variables that get the three data items are snum (song number), min (length in minutes of the song), and sec (the remaining seconds). The image I include will make more sense of this. Also, I am having trouble getting the minutes left and second left (bottom of image). Some important variables are the length of the casette in minutes (size = 45) and the length of the casette in seconds (size_sec = size * 60). Thanks for all of your help!
The certain part that I am having a problem with is when the seconds reach 60, and then a minute must be added to the total and the seconds reset. However, the total seconds needs to remain the same.
Thanks for any help at all....
The image displays the proper output: