Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
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)
Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.