0

# tpm.py

# A program that accepts the total amount of purchase, calculates the

# appropriate discount, and displays the discount and the purchase after

# discount.

from math import *

def main():

cost = get_cost()

discount = get_discount()

% = calc_percent(discount)

final cost = get_final_cost

cost_percent = cost_discount(cost, discount)

show_result(cost_discount_final_cost)

def get_cost():

return float(raw_input("Enter the cost before discount: "))

def get_discount():

return float(raw_input("Enter your discount is: "))

def calc_percent(discount)

% = 0.10 on the entire purchase if it exceeds $1,000.00

% = 0.05 on the entire purchase if it exceeds $500.00, but not $1,000.00

print "No discount on puchases of $500.00 or less

:o