Question
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
I have up to the perform calculations and output modules programmed. Can someone help me get started on the perform calculations module?
Thanks
Answers
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.
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.
Related Questions
Write a letter to the supermarket manager explaining what has happened. Tell the manager how you fee...
The Davis family try shopping in a different supermarket to save money.
They used their old supe...
Which method will give Pia a sample of the population she is the manager of XYZ supermarket, and has...
Benjamin is a top manager responsible for advertising, supervising the sales force, and managing cus...