Advertisement
j311yf1sh

NetherBagCalc1.0

Sep 25th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.67 KB | None | 0 0
  1. #############################################################
  2. #                    Nethereweave Calc                      #
  3. #                                                           #
  4. #       Creator: Jellyfish                                  #
  5. #       Version: 1.0       Date: Saturday Sep 24 2011       #
  6. #                                                           #
  7. #      Description:                                         #
  8. #      Netherweave cal is just a simple calculator          #
  9. #      designed to calculate how many netherweave           #
  10. #      bags can be made from a set amount of cloth          #
  11. #                                                           #
  12. #      Instructions:                                        #
  13. #      input number of cloth                                #
  14. #                                                           #
  15. #      Future:                                              #
  16. #      Plan to implement a pricing system                   #
  17. #                                                           #
  18. #      Used: Not available at time of writing               #
  19. #############################################################
  20.  
  21. from math import *
  22.  
  23.  
  24. ClothNum = int(raw_input("How many pieces of cloth do you have? "))
  25.  
  26. BoltNeedMake = int(5)
  27.  
  28. BoltNeedBag = int(4)
  29.  
  30. RuneThread = int(1)
  31.  
  32. def MathOfBolts(Num):
  33.     Divided = Num/BoltNeedMake
  34.     DvStr = str(Divided)
  35.    
  36.     BagsMake = Divided/BoltNeedBag
  37.     BagStr = str(BagsMake)
  38.    
  39.     ThreadNeeded = RuneThread*BagsMake
  40.     Threads = str(ThreadNeeded)
  41.  
  42.     print("You can make "+BagStr+" bags and you will need "+Threads+" Rune threads!")
  43.  
  44. MathOfBolts(ClothNum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement