Ok so the question is this: 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 price of an item and its weight in pounds and ounces. It should then determine and display the unit price (the price per ounce) of an item.
I have up to the perform calculations and output modules programmed. Can someone help me get started on the perform calculations module?
Computer programming - drwls, Saturday, June 28, 2008 at 7:05pm
Compute the mass in ounces,
M (in oz.) = 16*(# of pounds) + (# of additional oz.)
and divide that by the price in cents.
Just how you do that depends upon the computer language that you use.
duaoh shzonml - duaoh shzonml, Friday, February 6, 2009 at 11:18am
xhomndlca mxvk yxwgt prtla vomcai zavlq fphdxg