Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Get detailed answers to your questions from a community of experts dedicated to providing accurate information. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
Sagot :
Answer:
The program in Python is as follows:
name = input("Name of item: ")
PoundPrice = int(input("Pound Price: "))
Pounds = int(input("Weight (pounds): "))
Ounces = int(input("Weight (ounce): "))
UnitPrice = PoundPrice/16
TotalPrice = PoundPrice * (Pounds + Ounces/16)
print("Unit Price:",UnitPrice)
print("Total Price:",TotalPrice)
Explanation:
This gets the name of the item
name = input("Name of item: ")
This gets the pound price
PoundPrice = int(input("Pound Price: "))
This gets the weight in pounds
Pounds = int(input("Weight (pounds): "))
This gets the weight in ounces
Ounces = int(input("Weight (ounce): "))
This calculates the unit price
UnitPrice = PoundPrice/16
This calculates the total price
TotalPrice = PoundPrice * (Pounds + Ounces/16)
This prints the unit price
print("Unit Price:",UnitPrice)
This prints the total price
print("Total Price:",TotalPrice)
Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.