I started on debugging today.
I ran the program as shown in the book answering no to having flown before and metric to system measurement. The directions scrolled past like lightning, so I missed most of them as they scrolled off the screen. I’ll have to put in a temporary series of input statements just so I can double check the instructions.
353 INPUT “PRESS ENTER TO CONTINUE?”;X9$
433, 488 were added just like 353 above.
Later I’ll have to modify this part.
Using this I was able to double check the instructions. One thing I noticed during this part of the debugging was the program uses the variables N$ and M$ which with the page scans being fuzzy is sometimes hard to tell apart. Another thing that I noticed was the run in the book shows the user choosing 1 for metric, but the last section that explains the output, describes measurements in feet or English. The actual run comes out correctly, but I had to double check it anyways because it was different from the book.
One value that puzzles me is line at line 295 which states:
295 M$=”M.MILES”
I think it should be just MILES, but won’t change it for now.
I’ve got the first part, about half of the listing debugged. That was the easy part, it was just directions and setup. The rest is going to tedious, because the book is blurry and the use of some very similar variables.
Right now when run the distance and vertical velocity are not printing correctly.
Recent Comments