In lecture notes L5 - Data Abstraction, on slide 5.3.3, in the seg-length procedure, it uses other procerures, start-point and end-point, which I believe are supposed to be start-pt and end-pt, based on their previous definitions - thats not to say you couldnt also define start-point and end-point the same way but that would be redundant to have defined and used the procedures both ways while their definitions are the same
Start-pt and end-pt should be start-point and end-point on that slide. They just used shorter forms to fit the lines on the slide, I suppose.
---actually it was start-point in the original definition, but ten was used as start-pt in stretch-seg then as start-point in seg-length ---> so it would be important if you are following the notes to make sure its consistently one or the other in your own code
Join our real-time social learning platform and learn together with your friends!