[Tutor] Calculator functions

Brendhan Horne brendhanhorne@hotmail.com
Wed, 20 Jun 2001 21:47:27 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C0F9D2.98EEA940
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have been reading the non programmers guide and it has been helpful =
but I think a point is just over my head. Here is what I am looking for:
Things in Parenthesis are my notes on what I want to happen.



First Number:    ( You than enter a single digit number from 0-9 )
Second Number:   ( You than enter a single digit number from 0-9 )
Answer:                  ( The  Product of First Number multiplied by =
Second Number )




I am thinking:
a =3D raw_input ("First Number:")
b =3D raw_input ("Second Number:")
a*b =3D raw_input ("Answer:")
but my thinking is not quite there a little help if you could. Thanks in =
advance.
Thanks,
Brendhan
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE d- s: a C++ U(++) P(++) L+(++) E- W+ N+ o+ K- w+
O+ M V? PS+ Y PGP(++) t++ 5++ X- R+++ tv++ b+++ DI++
D G(++) e+(++) h-- r++ y++*
------END GEEK CODE BLOCK------

------=_NextPart_000_0012_01C0F9D2.98EEA940
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I have been reading the non programmers guide and it =
has been=20
helpful but I think a point is just over my head. Here is what I am =
looking=20
for:</FONT></DIV>
<DIV><FONT size=3D2>Things in Parenthesis are my notes on what I want to =

happen.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>First Number:&nbsp;&nbsp;&nbsp; ( You than enter a =
single=20
digit number from 0-9 )</FONT></DIV>
<DIV><FONT size=3D2>Second Number:&nbsp;&nbsp; ( You than enter a single =
digit=20
number from 0-9 )</FONT></DIV>
<DIV><FONT=20
size=3D2>Answer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
( The&nbsp; Product of First Number multiplied by Second Number =
)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>I am thinking:</FONT></DIV>
<DIV><FONT size=3D2>a =3D raw_input ("First Number:")</FONT></DIV>
<DIV><FONT size=3D2>b =3D raw_input ("Second Number:")</FONT></DIV>
<DIV><FONT size=3D2>a*b =3D raw_input ("Answer:")</FONT></DIV>
<DIV><FONT size=3D2>but my thinking is not quite there a little help if =
you could.=20
Thanks in advance.</FONT></DIV>
<DIV><FONT size=3D2>Thanks,<BR>Brendhan<BR>-----BEGIN GEEK CODE=20
BLOCK-----<BR>Version: 3.1<BR>GE d- s: a C++ U(++) P(++) L+(++) E- W+ N+ =
o+ K-=20
w+<BR>O+ M V? PS+ Y PGP(++) t++ 5++ X- R+++ tv++ b+++ DI++<BR>D G(++) =
e+(++) h--=20
r++ y++*<BR>------END GEEK CODE BLOCK------</FONT></DIV></BODY></HTML>

------=_NextPart_000_0012_01C0F9D2.98EEA940--