Created
February 28, 2014 21:38
-
-
Save ddavison/9280479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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