Advertisement
dipollwody

Untitled

Jan 16th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. from math import *
  2. class MojaKlasa(object):
  3. def __init__(self, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, r, s, t, w, x, y, z, waga, cm, suma, ans):
  4. self.ans = True
  5. self.a = float(input())
  6. self.b = float(input())
  7. self.c = float(input())
  8. self.d = float(input())
  9. self.e = float(input())
  10. self.f = float(input())
  11. self.g = float(input())
  12. self.h = float(input())
  13. self.i = e * 10 * f / 4
  14. self.j = g * 10 * h / 4
  15. self.k = float(input())
  16. self.l = float(input())
  17. self.m = float(input())
  18. self.n = float(input())
  19. self.o = k * 10 * l / 4
  20. self.p = m * 10 * n / 4
  21. self.r = float(input())
  22. self.s = True
  23. self.t = float(input())
  24. self.w = float(input())
  25. self.x = float(input())
  26. self.y = r * 10 * t / 4
  27. self.z = c * 10 * d / 4
  28. self.waga = True
  29. self.cm = True
  30. self.suma = True
  31.  
  32. ans=True
  33. while ans:
  34. print("""
  35. 1.Bmi
  36. 2.liczenie kalori
  37. 3.Instrukcja
  38. 4.Dziennik
  39. 5.Exit/Quit
  40. """)
  41. ans=input("What would you like to do? ")
  42. if ans=="1":
  43. print('ile warzysz kilo (pamiętaj bez przecinka)?')
  44. waga = float(input())
  45. print('ile mierzysz centymetrów (pamiętaj bez przecinka) ?')
  46. cm = float(input())
  47. s = (cm ** 2)
  48. suma = waga / s
  49.  
  50. print('Liczy sie najwyższy argument czyli: ')
  51. if (s <= 0.0016 <= 0.00169):
  52. print("wygłodzenie")
  53. if (s <= 0.0017 <= 0.00179):
  54. print("wychudzenie")
  55. if (s <= 0.0018 <= 0.0025):
  56. print("niedowaga")
  57. if (s <= 0.00299 <= 0.0030):
  58. print("nadwaga")
  59. if (s <= 0.00349 <= 0.0035):
  60. print("I stopień otyłości")
  61. if (s <= 0.00399 <= 0.0040):
  62. print("II stopień otyłości")
  63. if (s >= 0.0040):
  64. print("III stopień otyłości")
  65.  
  66. print("-------------------------------------------")
  67. print("-------------------------------------------")
  68. print('twoje Bmi')
  69. print(s)
  70. print('Liczy sie najwyższy argument')
  71. print("-------------------------------------------")
  72. print("-------------------------------------------")
  73. print('tabela Bmi dla progrmu')
  74. print("wygłodzenie 0.0016/0.0017")
  75. print("wychudzenie 0.0017/0.0018")
  76. print("niedowaga 0.0018/0.0025")
  77. print("nadwaga 0.0030/0.0035")
  78. print("I stopień otyłości 0.030/0.0035")
  79. print("II stopień otyłości 0.0035/0.0040")
  80. print("III stopień otyłości powyżej 0.0040")
  81. print("-------------------------------------------")
  82. print("koniec badania")
  83. print("-------------------------------------------")
  84.  
  85.  
  86.  
  87. elif ans=="2":
  88. print('ile kilogramów na prawa ?')
  89. c = int(input())
  90. print('ile razy podniosłeś ?')
  91. d = int(input())
  92. z = c * 10 * d / 4
  93. print('Tyle spaliłes kalori')
  94. print(z)
  95. print('razem kalori z jednego ciezaru')
  96. print(z)
  97.  
  98. print('ile kilogramów na lewa ?')
  99. e = int(input())
  100. print('ile razy podniosłeś ?')
  101. f = int(input())
  102. i = e * 10 * f / 4
  103. print('Tyle spaliłes kalori')
  104. print(i)
  105.  
  106. print('ile kilogramów na prawa ?')
  107. g = int(input())
  108. print('ile razy podniosłeś ?')
  109. h = int(input())
  110. j = g * 10 * h / 4
  111. print('Tyle spaliłes kalori')
  112. print(j)
  113. print('razem kalori z jednego ciezaru')
  114. print(i + j)
  115.  
  116. print('ufff teraz cięższe razem')
  117.  
  118. print('ile kilogramów na klate ?')
  119. k = int(input())
  120. print('ile razy podniosłeś ?')
  121. l = int(input())
  122. o = k * 10 * l / 4
  123. print('Tyle spaliłes kalori')
  124. print(o)
  125.  
  126. print('ile kilogramów na klate ?')
  127. m = int(input())
  128. print('ile razy podniosłeś ?')
  129. n = int(input())
  130. p = m * 10 * n / 4
  131. print('Tyle spaliłes kalori')
  132. print(p)
  133. print('razem kalori z ciezaru')
  134. print(o + p)
  135.  
  136. print('jeszcze pompeczki i nad głowe')
  137.  
  138. print('ile kilogramów nad głowe ?')
  139. r = int(input())
  140. print('ile razy podniosłeś ?')
  141. t = int(input())
  142. y = r * 10 * t / 4
  143. print('Tyle spaliłes kalori')
  144. print(y)
  145.  
  146. print('ile wazysz dla statystyki pompek ?')
  147. w = int(input())
  148. print('ile razy podniosłeś sie ?')
  149. x = int(input())
  150. v = w * 10 * x / 4
  151. print('Tyle spaliłes kalori')
  152. print(v)
  153. print('razem kalori z ciezaru')
  154. print(y + v)
  155.  
  156. print('Nowy rok co :D')
  157. print('tyle kalori razem z czego 9000 kalori to 1 kg spalony ')
  158. print( z + i + j + o + p + y + v)
  159.  
  160. print('Brawo')
  161.  
  162. elif ans=="3":
  163. print("-------------------------------------------")
  164. print("Instrukcja")
  165. print("-------------------------------------------")
  166. print("Program zawiera pomoc dla tych którzy są aktywni")
  167. print("Zagadnienia dzielą sie na")
  168. print("Bmi - Body mas index")
  169. print("licznik kalori")
  170. print("kalkulator ćwiczeń wraz z harmonogramem")
  171. print("twój kalkulator wraz z licznikiem kalori")
  172. print("-------------------------------------------")
  173. print("Aby poruszać sie w programie należy wcisnąc na klawiaturze przycisk nazwy kategori")
  174. print("Aby zacząć liczyć należy wpisać odpowiednio do licznika albo do dzienika swoje dane ćwiczeń")
  175. print("dziennik stworzony jest tak aby zapamiętywał dane z innych dni")
  176. print("Kalkulator jest zbiorem wszystkich z pozostałych kategori dla twojej wygody")
  177. print("-------------------------------------------")
  178. print("Do dzieła")
  179. print("-------------------------------------------")
  180. elif ans=="4":
  181. print("\n Goodbye")
  182. elif ans=="5":
  183. print("\n Goodbye")
  184. ans = None
  185. else:
  186. print("\n Not Valid Choice Try again")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement