CheckPoint: Unit Price Programming Problem
(Not rated)
(Not rated)
Design a program that solves the following problem:
The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and total price of an item and its weight in pounds and ounces. Then it should determine and display the unit price (the price per ounce) of that item. You will need the following variables:
ItemName (a String) Pounds (a Float) Ounces (a Float) | PoundPrice (a Float) TotalPrice (a Float) UnitPrice (a Float) |
You will need the following formulas:
PoundPrice = TotalPrice /(Pounds + Ounces/16)
UnitPrice = PoundPrice/16
11 years ago
A++ work for you
NOT RATED
Purchase the answer to view it

- 2029533310.docx