Write a program in python that can compare the unit (perlb) cost of sugar sold in packages with different weights and prices. The program prompts the user to enter the weight and price of package 1, then does the same for package 2, and displays the results to indicate sugar in which package has a better price. It is assumed that the weight of all packages is measured in lb. The program should check to be sure that both the inputs of weight and price are both positive values.
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program in python that can compare the unit (perlb) cost of sugar sold in packages with different weights and prices. The program ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Write a program in python that can compare the unit (perlb) cost of sugar sold in packages with different weights and prices.