Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- class MojaKlasa(object):
- 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):
- self.ans = True
- self.a = float(input())
- self.b = float(input())
- self.c = float(input())
- self.d = float(input())
- self.e = float(input())
- self.f = float(input())
- self.g = float(input())
- self.h = float(input())
- self.i = e * 10 * f / 4
- self.j = g * 10 * h / 4
- self.k = float(input())
- self.l = float(input())
- self.m = float(input())
- self.n = float(input())
- self.o = k * 10 * l / 4
- self.p = m * 10 * n / 4
- self.r = float(input())
- self.s = True
- self.t = float(input())
- self.w = float(input())
- self.x = float(input())
- self.y = r * 10 * t / 4
- self.z = c * 10 * d / 4
- self.waga = True
- self.cm = True
- self.suma = True
- ans=True
- while ans:
- print("""
- 1.Bmi
- 2.liczenie kalori
- 3.Instrukcja
- 4.Dziennik
- 5.Exit/Quit
- """)
- ans=input("What would you like to do? ")
- if ans=="1":
- print('ile warzysz kilo (pamiętaj bez przecinka)?')
- waga = float(input())
- print('ile mierzysz centymetrów (pamiętaj bez przecinka) ?')
- cm = float(input())
- s = (cm ** 2)
- suma = waga / s
- print('Liczy sie najwyższy argument czyli: ')
- if (s <= 0.0016 <= 0.00169):
- print("wygłodzenie")
- if (s <= 0.0017 <= 0.00179):
- print("wychudzenie")
- if (s <= 0.0018 <= 0.0025):
- print("niedowaga")
- if (s <= 0.00299 <= 0.0030):
- print("nadwaga")
- if (s <= 0.00349 <= 0.0035):
- print("I stopień otyłości")
- if (s <= 0.00399 <= 0.0040):
- print("II stopień otyłości")
- if (s >= 0.0040):
- print("III stopień otyłości")
- print("-------------------------------------------")
- print("-------------------------------------------")
- print('twoje Bmi')
- print(s)
- print('Liczy sie najwyższy argument')
- print("-------------------------------------------")
- print("-------------------------------------------")
- print('tabela Bmi dla progrmu')
- print("wygłodzenie 0.0016/0.0017")
- print("wychudzenie 0.0017/0.0018")
- print("niedowaga 0.0018/0.0025")
- print("nadwaga 0.0030/0.0035")
- print("I stopień otyłości 0.030/0.0035")
- print("II stopień otyłości 0.0035/0.0040")
- print("III stopień otyłości powyżej 0.0040")
- print("-------------------------------------------")
- print("koniec badania")
- print("-------------------------------------------")
- elif ans=="2":
- print('ile kilogramów na prawa ?')
- c = int(input())
- print('ile razy podniosłeś ?')
- d = int(input())
- z = c * 10 * d / 4
- print('Tyle spaliłes kalori')
- print(z)
- print('razem kalori z jednego ciezaru')
- print(z)
- print('ile kilogramów na lewa ?')
- e = int(input())
- print('ile razy podniosłeś ?')
- f = int(input())
- i = e * 10 * f / 4
- print('Tyle spaliłes kalori')
- print(i)
- print('ile kilogramów na prawa ?')
- g = int(input())
- print('ile razy podniosłeś ?')
- h = int(input())
- j = g * 10 * h / 4
- print('Tyle spaliłes kalori')
- print(j)
- print('razem kalori z jednego ciezaru')
- print(i + j)
- print('ufff teraz cięższe razem')
- print('ile kilogramów na klate ?')
- k = int(input())
- print('ile razy podniosłeś ?')
- l = int(input())
- o = k * 10 * l / 4
- print('Tyle spaliłes kalori')
- print(o)
- print('ile kilogramów na klate ?')
- m = int(input())
- print('ile razy podniosłeś ?')
- n = int(input())
- p = m * 10 * n / 4
- print('Tyle spaliłes kalori')
- print(p)
- print('razem kalori z ciezaru')
- print(o + p)
- print('jeszcze pompeczki i nad głowe')
- print('ile kilogramów nad głowe ?')
- r = int(input())
- print('ile razy podniosłeś ?')
- t = int(input())
- y = r * 10 * t / 4
- print('Tyle spaliłes kalori')
- print(y)
- print('ile wazysz dla statystyki pompek ?')
- w = int(input())
- print('ile razy podniosłeś sie ?')
- x = int(input())
- v = w * 10 * x / 4
- print('Tyle spaliłes kalori')
- print(v)
- print('razem kalori z ciezaru')
- print(y + v)
- print('Nowy rok co :D')
- print('tyle kalori razem z czego 9000 kalori to 1 kg spalony ')
- print( z + i + j + o + p + y + v)
- print('Brawo')
- elif ans=="3":
- print("-------------------------------------------")
- print("Instrukcja")
- print("-------------------------------------------")
- print("Program zawiera pomoc dla tych którzy są aktywni")
- print("Zagadnienia dzielą sie na")
- print("Bmi - Body mas index")
- print("licznik kalori")
- print("kalkulator ćwiczeń wraz z harmonogramem")
- print("twój kalkulator wraz z licznikiem kalori")
- print("-------------------------------------------")
- print("Aby poruszać sie w programie należy wcisnąc na klawiaturze przycisk nazwy kategori")
- print("Aby zacząć liczyć należy wpisać odpowiednio do licznika albo do dzienika swoje dane ćwiczeń")
- print("dziennik stworzony jest tak aby zapamiętywał dane z innych dni")
- print("Kalkulator jest zbiorem wszystkich z pozostałych kategori dla twojej wygody")
- print("-------------------------------------------")
- print("Do dzieła")
- print("-------------------------------------------")
- elif ans=="4":
- print("\n Goodbye")
- elif ans=="5":
- print("\n Goodbye")
- ans = None
- else:
- print("\n Not Valid Choice Try again")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement