Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############################################################
- # Nethereweave Calc #
- # #
- # Creator: Jellyfish #
- # Version: 1.0 Date: Saturday Sep 24 2011 #
- # #
- # Description: #
- # Netherweave cal is just a simple calculator #
- # designed to calculate how many netherweave #
- # bags can be made from a set amount of cloth #
- # #
- # Instructions: #
- # input number of cloth #
- # #
- # Future: #
- # Plan to implement a pricing system #
- # #
- # Used: Not available at time of writing #
- #############################################################
- from math import *
- ClothNum = int(raw_input("How many pieces of cloth do you have? "))
- BoltNeedMake = int(5)
- BoltNeedBag = int(4)
- RuneThread = int(1)
- def MathOfBolts(Num):
- Divided = Num/BoltNeedMake
- DvStr = str(Divided)
- BagsMake = Divided/BoltNeedBag
- BagStr = str(BagsMake)
- ThreadNeeded = RuneThread*BagsMake
- Threads = str(ThreadNeeded)
- print("You can make "+BagStr+" bags and you will need "+Threads+" Rune threads!")
- MathOfBolts(ClothNum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement