i have a total purchess program function in python that i keepgetting an error on. the error is in the first output statement sofar when i run the program. thank you in advance# MAIN PROGRAM def main(): salesTax = 0.00 tax = 0.07 totalPrice – 0.00 totalsalesAmount = 0.00 # INPUT STATEMENTS pricel – float (input(“CENTER THE PRICE FOR ITEM 01>”)); price2 – float(input(“CENTER THE PRICE FOR ITEM 02 “)); price3 – float(input (“CENTER THE PRICE FOR ITEM 03>”)); price4 = float (input(“CENTER THE PRICE FOR ITEM # 04 “)); price5 = float (input(“CENTER THE PRICE FOR ITEM 05>”)); + CALCULATIONS / PROCESSING # Call totalPrice the price sum’Total = totalPrice (pricel, price2, prices, price4, price5): # Call the salesTax Function sumTax – salesTax (totalPrice, sumtax): Call the totalSalesAmount Function sum/mount – totalSalesAmount (totalPrice, salesTax): # OUTPUT STATEMENTS print(); displays a blank line print(“” 70); print (format(“PRICE FOR ITEM #1 – $”,”>455″) + format (pricel, 13..2″)); print (format(“PRICE FOR ITEM #2 = $”,”>45s”) + format (price2, 13,.21″)); print (format(“PRICE FOR ITEM #3 – 3″,”>45s”) + format (price3, “13, 20”)); print (format(“PRICE FOR ITEM #4 – $”,”>45s”) + format (price4,”13.20″)); print (format(“PRICE FOR ITEM 5 5 “,”>455) + format (prices,”13,.2 )); print(” 70); print (format(“SALES TAX AMOUNT-$””>455″) + format (sales Tax, “13.2”)); print(” 70): print (format (TOTAL PRICE OF ALL THE ITEMS – $”,”>45) + format (salesTaX, *13, 21″)) print(“…” 70) print (format(TOTAL SALES AMOUNT FOR THIS TRANSACTIONS ->45 ) + format(totalSalesAmount. *13.20 print( 70); # END OUTPUT STATEMENTS # FUNCTION TO SUM OF PRICES det totalPrice (pricel, price2, price3, price4, price5): sumTotal = pricel + price2 + price3 + price4 + price5 return sumTotal + End totalPrice function FUNCTION TO CALCULATE THE SALES TAX def salesTax (tax, sumTotal): tax = sumTotal * sumTax return tax + End tax function . # FUNCTION TO CALCULATE TOTAL SALES AMOUNT det totalSalesAmount (sumTotal, tax): sales = sumTotal + tax return sales # End totalSalesAmount function # Call Main Function main() END PROGRAM Show transcribed image text # MAIN PROGRAM def main(): salesTax = 0.00 tax = 0.07 totalPrice – 0.00 totalsalesAmount = 0.00 # INPUT STATEMENTS pricel – float (input(“CENTER THE PRICE FOR ITEM 01>”)); price2 – float(input(“CENTER THE PRICE FOR ITEM 02 “)); price3 – float(input (“CENTER THE PRICE FOR ITEM 03>”)); price4 = float (input(“CENTER THE PRICE FOR ITEM # 04 “)); price5 = float (input(“CENTER THE PRICE FOR ITEM 05>”)); + CALCULATIONS / PROCESSING # Call totalPrice the price sum’Total = totalPrice (pricel, price2, prices, price4, price5): # Call the salesTax Function sumTax – salesTax (totalPrice, sumtax): Call the totalSalesAmount Function sum/mount – totalSalesAmount (totalPrice, salesTax): # OUTPUT STATEMENTS print(); displays a blank line print(“” 70); print (format(“PRICE FOR ITEM #1 – $”,”>455″) + format (pricel, 13..2″)); print (format(“PRICE FOR ITEM #2 = $”,”>45s”) + format (price2, 13,.21″)); print (format(“PRICE FOR ITEM #3 – 3″,”>45s”) + format (price3, “13, 20”)); print (format(“PRICE FOR ITEM #4 – $”,”>45s”) + format (price4,”13.20″)); print (format(“PRICE FOR ITEM 5 5 “,”>455) + format (prices,”13,.2 )); print(” 70); print (format(“SALES TAX AMOUNT-$””>455″) + format (sales Tax, “13.2”)); print(” 70): print (format (TOTAL PRICE OF ALL THE ITEMS – $”,”>45) + format (salesTaX, *13, 21″)) print(“…” 70) print (format(TOTAL SALES AMOUNT FOR THIS TRANSACTIONS ->45 ) + format(totalSalesAmount. *13.20 print( 70);
# END OUTPUT STATEMENTS # FUNCTION TO SUM OF PRICES det totalPrice (pricel, price2, price3, price4, price5): sumTotal = pricel + price2 + price3 + price4 + price5 return sumTotal + End totalPrice function FUNCTION TO CALCULATE THE SALES TAX def salesTax (tax, sumTotal): tax = sumTotal * sumTax return tax + End tax function . # FUNCTION TO CALCULATE TOTAL SALES AMOUNT det totalSalesAmount (sumTotal, tax): sales = sumTotal + tax return sales # End totalSalesAmount function # Call Main Function main() END PROGRAM
Expert Answer
Answer to i have a total purchess program function in python that i keep getting an error on. the error is in the first output st…