se = 5
sc = 3.7
sm = 8
pe = 6.3
pm = 5.7
pc = 4.3
PRINT "enter 'S' for sale, or 'P' for purchse"
INPUT t$
PRINT "enter amount"
INPUT amt
PRINT "enter 'E' for ComExc, 'C' for CottExc, 'M' for Mer"
INPUT e$
IF t$ = "S" THEN
IF e$ = "E" THEN rate = se
IF e$ = "C" THEN rate = sc
IF e$ = "M" THEN rate = sm
END IF
IF t$ = "P" THEN
IF e$ = "E" THEN rate = pe
IF e$ = "C" THEN rate = pc
IF e$ = "M" THEN rate = pm
END IF
C = rate * amt / 100
PRINT "Commish = ", C
2006-07-24
14:34:51
·
3 answers
·
asked by
812BOSS
1
in
Programming & Design