<p>我不熟悉编码/python,因此非常感谢您的帮助。我正试图找出如何将userQuantityPurchased和userPrice添加在一起,但我不知道该怎么做。这是Python btw,因此提前感谢您</p>
<pre><code> #Write a program that will ask the User to enter the Customer Name, Quantity purchased, and the Price per unit. The program should compute the Sales Amount, State and County
#sales taxes. The program should also computer the net sales and discount givenn tot he customer after deduction of the sales taxes from the gross sales. Assume the state sales tax is 9 percent, County sales tax is 5 percent, and discount is %10. A lop should prompt the user to enter yes(y) to process another record or not.sum
import math
userName = input("Enter Customer Name: ")
userQuantityPurchased = int(input("Enter Quantity Purchased: "))
userPrice = int(input("Enter Price per Unit: "))
print("------------------------------")
print("Here is your Net Sale!")
print("------------------------------")
print("Customer Name: " + userName)
print("Sales Amount: " + userQuantityPurchased + userPrice)
</code></pre>