Okay, it looks like you're doing well. I'm just going through your second email now, and it seems many of my comments in the first email is irrelavent to you anymore, because you already knew how to do it. =]<br><br>

Let's have a look. Again, my reply is in <span style="color: rgb(51, 102, 255);">Blue.</span><br><br>.<br><br><b>And what I've attempted to do so far....<br>
<br></b>so far, i have gone into the cs150 directory as instructed and created a
 project0 directory. in that directory i typed in touch support.py and 
touch stopping.py to create the support and stopping files. is that 
correct so far?<br>
<br>then i typed in vim support.py to edit the support.py file.<br><br><div style="margin-left: 40px;"><span style="color: rgb(51, 102, 255);">I believe in vim you can save your file, too, anyway, so the touch part is probably unnecessary, but won't hurt.</span><br>

</div><div><br></div><div class="im"><div>def distance(a,b,c,d):<br></div></div>    return sqrt(a**2+b**2), sqrt(c**2+d**2)  <br><br><div style="margin-left: 40px;"><span style="color: rgb(51, 102, 255);">That won't do. You're returning the distance between the origin and (a, b), and another distance between the origin and (c, d).</span><br style="color: rgb(51, 102, 255);">

<br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">Think about this again. If I understand this correctly, you should be only returning one value (not two, which is what you're doing now), that is the distance between (a, b) and (c, d).</span><br>

</div><br>from support import*<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace; color: rgb(51, 102, 255);">from support import *</span><br><span style="color: rgb(51, 102, 255);">Note the space before *. It makes things more pleasant, even when your version compiles.</span><br>

</div><br>def main():<br><br>    def getinfo():<br>        amplitude=eval(input("<div><div class="im">Amplitude of the sine wave (in feet): "))<br></div>

        period=eval(input("Period of the sine wave (in feet): "))<br>        xDistance=eval(input("Distance to the stop sign (in feet): "))<br>        distance2=eval(input("Distance needed to stop without using brakes (in feet): "))<br>



        return amplitude,period,xDistance,distance2<br><br>    amplitude,period,xDistance,distance2=getinfo()<br>    s=sineLength(amplitude,period,xDistance,1)<br>    print(xDistance,distance2,s)<br><br><div style="margin-left: 40px;">

<span style="color: rgb(51, 102, 255);">I'm almost 100% certain your instructor wanted you to have getinfo() outside of main(). It's valid to have a function inside a function, but there's not much point to it.</span><br style="color: rgb(51, 102, 255);">

<br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">Secondly, that doesn't even compile. Nor does</span><br style="color: rgb(51, 102, 255);"><br style="font-family: courier new,monospace; color: rgb(51, 102, 255);">

<span style="font-family: courier new,monospace; color: rgb(51, 102, 255);">xDistance=eval(input("Distance to the stop sign (in feet): "))</span><br style="color: rgb(51, 102, 255);"><br style="color: rgb(51, 102, 255);">

<span style="color: rgb(51, 102, 255);">by itself. Without going into how slobby the use of eval() is in your case, you can fix it and make it syntax-legal by adding another quotes around your input function.</span><br style="color: rgb(51, 102, 255);">

<br style="color: rgb(51, 102, 255);"><span style="font-family: courier new,monospace; color: rgb(51, 102, 255);">xDistance = eval('input("Distance to the stop sign (in feet): ")')</span><br></div><br>main()<br>

<br><div style="margin-left: 40px;"><span style="color: rgb(51, 102, 255);">It's okay to run your main() method that way, as long as you're sure stopping.py isn't going to be imported by anyone else.</span><br>

</div><br>I realize this is probably elementary, but I've never done anything 
like this, and kind of got thrown into it. It's very much a 
teach-yourself-course, so I guess if you don't really understand the 
lingo, it's easy to fall behind.<br>
</div><br><div style="margin-left: 40px; color: rgb(51, 102, 255);"><span style="font-family: arial,helvetica,sans-serif;">You're doing well as far as I can tell.</span><br><br></div><div style="color: rgb(51, 102, 255);">

Cheers,<br>Xav<br style="font-family: arial,helvetica,sans-serif;"></div>