<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This program works the way it is now but I was
wanting to make a change. When I do change it, it no longer recognizes some
things and I was wondering why. Can someone please explain.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is the program:</FONT></DIV>
<DIV><FONT face=Arial size=2>def printStatement():<BR> print
"\n","Posted Speed
Limit:
",limit<BR> print "\n","Clocked
Speed:
",clocked<BR> print "\n","Exceeded Speed Limit
by:
",speeding<BR> print "\n","Base fine for
speeding:
",fine<BR> print "\n","Fine for each mph over speed limit:
",speeding*5<BR> print "\n","Fine for exceeding 90
mph:
",over90<BR> print "\n","Total
charges:
",calculatedFine</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>limit=input("What is the posted speed limit?
")<BR>clocked=input("What was the clocked speed? ")<BR>if
clocked<=limit:<BR> print "This driver was not speeding
"<BR>elif clocked>90:<BR>
speeding=clocked-limit<BR> fine=50<BR>
speedingFine=speeding*5<BR> over90=250<BR>
calculatedFine=fine+speedingFine+over90<BR>
printStatement()<BR>else:<BR>
speeding=clocked-limit<BR> fine=50<BR>
speedingFine=speeding*5<BR> over90=0<BR>
calculatedFine=fine+speedingFine<BR>
printStatement()<BR>------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>I want to make this change:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>def speedInfo():<BR>
limit=input("What is the posted speed limit? ")<BR>
clocked=input("What was the clocked speed? ")<BR> if
clocked<=limit:<BR> print "This
driver was not speeding "<BR> elif
clocked>90:<BR>
speeding=clocked-limit<BR>
fine=50<BR>
speedingFine=speeding*5<BR>
over90=250<BR>
calculatedFine=fine+speedingFine+over90<BR>
printStatement()<BR>
else:<BR>
speeding=clocked-limit<BR>
fine=50<BR>
speedingFine=speeding*5<BR>
over90=0<BR>
calculatedFine=fine+speedingFine<BR>
printStatement()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>speedInfo()</FONT></DIV>
<DIV><FONT face=Arial
size=2>---------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>Someone has told me that ya'll don't like to help
with homework. This already does what the assignment</FONT></DIV>
<DIV><FONT face=Arial size=2>asks for but I am playing with it trying to
learn more. Thank you for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2>Diana</FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>