Display Price per Ounce Input: Item Name (string: ItemName) Item Price (Real: Price) Item metric weight unit in Pounds (Integer: Pounds) Fraction of Ounces (Integer: Ounces) Output: Unit Price (Real: UnitPrice) Design main Module assign itemName as String Declare price as real Declare pounds as integer Declare ounces as integer Declare unitPrice as real pen Unit Price Program economise This program computes the unit price for an item speak Input Data Module Call Perform Calculations Module Call Output Results Module End Program End principal(prenominal) Module Input Data Module compose What is the items attain Input itemName Write How much does the items cost? Input price Write What is the weight in pounds (no fractions)? Input pounds Write What are the half(prenominal) ounces? Input ounces End Input Data Module Perform Calculations Module settle ounces = pounds/16 + ounces unitPrice = price/ounces End Perform Calculations Module Output Results Module Write The item is, itemName... If you want to get a full essay, array it on our website: Ordercustompaper.com
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
No comments:
Post a Comment