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?

Thanks

1 answer

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.