This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Write “What is the item’s name?” Input ItemName Write “What is the item’s price?” Input ItemPrice Write “You will now enter the item’s weight (two steps).” Write “How many pounds does the item weigh (excluding ounces over nearest pound)?” Input ItemWeightLb Write “Now how many ounces?” Input ItemWeightOz End Input data module Perform calculations module Declare TotalOz as real Set TotalOz = ItemWeightLb * 16 + ItemWeightOz Set UnitPrice = ItemPrice / TotalOz End Perform calculations module Output results module Write “The item name is: ” ; ItemName Write “The price per ounce is : $” ; UnitPrice End Output results module...
View Full Document
- Spring '10
- Mass, Kilogram, Imperial units, United States customary units, Avoirdupois