1. Display program welcome message
2. Ask for item name
3. Ask for item price
4. Ask for pound weight
5. Ask for ounces
6. Convert pounds to ounces then add to input ounces
7. Divide total price by ounces
8. Display the price per ounce.
Item Weight in pounds
Ounces as integer
Declare Name as String
Declare Price as real
Declare Lbs as integer
Declare Oz as integer
Declare UnitPrice as real
Display "Marc’s Unit Pricing Program"
Display "This program will break down the weight of an item from pounds to ounces, and will then give you the price per ounce for the product listed."
Call Input Data Module
Call Perform Calculations Module
Call Output Results Module
End Main Module
REM now we get all the pertinent information that we need.
Input Data Module
Display "Name of the Item?"
Display "How much does it cost?"
Display "Item Weight in pounds only?"
Input weight in Lbs
Display "Please enter any additional ounces if listed?"
Display “Please confirm if the entry is correct.”
If yes then
Display “Enter to continue”
Call input data module again
End Input Data Module
REM it is time now to calculate or break down theunit price into size’s which this module does.
Perform Calculations Module
Set Oz = 16
UnitPrice = Price/Oz
End Perform Calculations Module
REM the module below takes the data that we received from user input and after the calculations, displays the unit price and other information to the user.
Output Results Module
Display "The item is: ", Name
Display "Total price of item:", Price
Display "Unit price per ounce:", UnitPrice
Display “Thank you for using Marc’s Unit Pricing Program promotion!”
End Output Results Module
Please join StudyMode to read the full document