<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body wsmode="compose" bgcolor="#FFFFFF" text="#000000">
hello, I am a college student in my first year of computer
programming, I was wondering if you could look at my code to see
whats wrong with it.<br>
<br>
# Mark Rourke<br>
# Sept 29, 2012<br>
# Write a program to calculate the sales tax at the rate of 4% and
2% respectively<br>
# Thereafter compute the total sales tax (sum of the state tax and
the county tax)<br>
# and the total purchase amount (sum of the purchase amount and the
total sales tax).<br>
# Finally, display the amount of purchase, the state sales tax, the
county sales tax,<br>
#the total sales tax and the total amount of the sale.<br>
<br>
#Variable Declarations<br>
#Real purchaseAmount, stateSalesTax, countySalesTax, totalSalesTax,
totalPurchaseAmount<br>
#Constant Real SALES_TAX = 0.4, COUNTY_TAX = 0.02<br>
<br>
#Display "Input Purchase Amount: $"<br>
<br>
#input the hours worked and hourly wage wage<br>
<br>
SALES_TAX = 0.4<br>
<br>
COUNTY_TAX = 0.02<br>
print("----------------------------------------------------------")<br>
print(("This program calculates the sales tax at the rate of 4% and
2% respectively, as well sum of the state tax"))<br>
print("----------------------------------------------------------")<br>
<br>
purchaseAmount = input("Please input the Purchase Amount: $")<br>
<br>
#Calculate the State Sales Tax, County Sales Tax, Total Sales Tax,
Total Purchase Amount<br>
<br>
purchaseAmount = int(purchaseAmount)<br>
<br>
stateSalesTax = int(purchaseAmount * SALES_TAX)<br>
<br>
countySalesTax = int(purchaseAmount * COUNTY_TAX)<br>
<br>
totalSalesTax = int(stateSalesTax + countySalesTax)<br>
<br>
totalPurchaseAmount = int(purchaseAmount + totalSalesTax)<br>
<br>
#Output the results<br>
<br>
Display ("Purchase Amount:$") purchaseAmount<br>
Display ("The State Sales Tax $") SALES_TAX<br>
Display ("The County Sales Tax: $") COUNTY_TAX<br>
Display ("The Total Sales Tax: $") totalSalesTax<br>
Display ("The Total Amount of the Purchase: $") totalPurchaseAmount<br>
<br>
<div class="moz-signature">-- <br>
<p><span id="ofl81" style="font-weight: bold; color: #333333;
font-family: verdana,sans-serif;"><span id="ofl85"
style="color: #666666;">Mark Rourke</span></span><br
id="ofl88" style="font-family: arial,sans-serif;">
<br id="ofl89" style="font-family: arial,sans-serif;">
<span style="font-family: Arial,Helvetica,Geneva,Sans-Serif;
color: #993300; font-size: xx-small;">T</span><span
style="font-family: Arial,Helvetica,Geneva,Sans-Serif; color:
#000000; font-size: xx-small;"><span style="color: #993300;">:</span>
705-728-6169</span><span style="font-size: xx-small;"><br
id="ofl813">
</span><span style="font-family:
Arial,Helvetica,Geneva,Sans-Serif; color: #993300; font-size:
xx-small;">M</span><span style="font-family:
Arial,Helvetica,Geneva,Sans-Serif; color: #000000; font-size:
xx-small;">: 705-331-0175</span><span style="font-size:
xx-small;"><br id="ofl817">
</span><span style="font-family:
Arial,Helvetica,Geneva,Sans-Serif; color: #993300; font-size:
xx-small; background-color: #ffffff;">E</span><span
style="font-family: Arial,Helvetica,Geneva,Sans-Serif; color:
#000000; font-size: xx-small;">: <a class="moz-txt-link-abbreviated" href="mailto:Mark.Rourke7@gmail.com">Mark.Rourke7@gmail.com</a></span><span
style="font-size: xx-small;"> </span></p>
</div>
</body>
</html>