Skip to content

Instantly share code, notes, and snippets.

@ddavison
Created February 28, 2014 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddavison/9280479 to your computer and use it in GitHub Desktop.
Save ddavison/9280479 to your computer and use it in GitHub Desktop.
Main Module
Get input from user
Display unit price (price per ounce)
Display total price
End Main Module
Get Input Module
Declare ItemName as String
Declare UnitPrice as Float
Declare Pounds as Float
Declare Ounces as Float
Write "Item Name:"
Input ItemName
Write "Unit Price:"
Input UnitPrice
Write "Pounds:"
Input Pounds
Write "Ounces:"
Input Ounces
End Get Input Module
Display Price Module
Declare UnitPrice as Float
Declare TotalPrice as Float
UnitPrice = PountPrice/16
TotalPrice = PoundPrice*(Pounds + Ounces/16)
End Display Price Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment