heres my code btw...

by Sail (no login)

'cis 115
'8 sep 10
'assignment 3

'the purpose of this program is to find the
'purchase price of an item with sales tax

CLS

PRINT " this is the Q Sales Tax Calculator"
PRINT "===================================="
PRINT ""
PRINT "cost of the item you are purchasing:"
PRINT ""
PRINT "what is the sales tax for your area:"
PRINT " please exclude the '%' sign"

LOCATE 4, 38
INPUT "", itemPrice
LOCATE 6, 38
INPUT "", salesTax

salesTax = salesTax * .01
total = itemPrice + (itemPrice * salesTax)
total = INT(total * 100 + .5) / 100

CLS
LOCATE 1, 1
PRINT "base cost of item:"
PRINT "sales tax in area:"
PRINT "sales tax on item:"
PRINT "item w/ sales tax:"

LOCATE 1, 19
PRINT INT(itemPrice * 100 + .5) / 100
LOCATE 2, 19
PRINT salesTax / .01; "%"
LOCATE 3, 19
PRINT INT((salesTax * itemPrice) * 100 + .5) / 100
LOCATE 4, 19
PRINT total

END

Posted on Sep 10, 2010, 10:28 PM

Respond to this message   

Return to Index