Help with a Python programming problem, i got the first problem correct but cant seem to get this one.
monthly_sale=[1000] # First month sales
for i in range(1,6):
if(i==5):
monthly_sale.append(monthly_sale[i-1]+monthly_sale[i-1]*7/100)
# 7% sales increases in month 6
else:
monthly_sale.append(monthly_sale[i-1]+monthly_sale[i-1]*10/100)
# 10% sales increases in month 1-5
state_tax=[]
fed_tax=[]
total_tax=[]
sales_minus_tax=[]
for i in range(6):
state_tax.append(monthly_sale[i]*5/100)
fed_tax.append(monthly_sale[i]*2.5/100)
total_tax.append(state_tax[i]+fed_tax[i])
sales_minus_tax.append(monthly_sale[i]-total_tax[i])
print("MONTH MONTHLY SALES STATE TAX AMOUNT FED TAX AMOUNT TOTAL
TAX AMOUNT SALES-TAX")
for i in range(6):
print(i+1,end=" ");
print("$%.2f"%monthly_sale[i],end=" ")
print("$%.2f"%state_tax[i],end=" ")
print("$%.2f"%fed_tax[i],end=" ")
print("$%.2f"%total_tax[i],end=" ")
print("$%.2f"%sales_minus_tax[i])
Help with a Python programming problem, i got the first problem correct but cant seem to...
in PYTHON -should look like attached PHOTO -A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and federal sales tax collected. -The Company made $1000 in sales in month 1. -Sales increased by 10% from the previous month each month for 6 months except in month 5 where it increased only 7%. (i.e. From month 5 to month 6 there was only a 7% increase) -State tax...