Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. from __future__ import print_function
  4. import time
  5.  
  6. print('Velkommen til automatisk bryggelogg')
  7.  
  8. print('\n--INFO--')
  9. a = raw_input('Øltype.....................: ')
  10. b = raw_input('Brygger(e).................: ')
  11. print('\n-------------------------------------------')
  12.  
  13. print('\n--MESK--')
  14. c = float(raw_input('Kilo korn..................: '))
  15. d = float(raw_input('Meskevann..................: '))
  16.  
  17. ratio = d / c
  18. print('\n - Liquor-to-grist ratio: {0:.1f}'.format(round(ratio, 1)))
  19. print('\n-------------------------------------------')
  20.  
  21. print('\n--SKYLLING--')
  22. e = raw_input('Volum transfert til BK.....: ')
  23. f = float(raw_input('Skyllevann m. korn.........: '))
  24. n = float(raw_input('Skyllevann u. korn.........: '))
  25.  
  26. r = f - n
  27. print('\n - Væske absorbert i korn: {}'.format(r))
  28. print('\n-------------------------------------------')
  29.  
  30. print('\n--KOK--')
  31. g = float(raw_input('Totalt volum i BK..........: '))
  32. h = raw_input('Oechsler for kok...........: ')
  33. i = float(raw_input('Volum etter kok............: '))
  34.  
  35. l = 100 * (( g - i) / g )
  36. m = l * 2/3
  37. o = 1 + ((c*0.805*385)/(1000*i))
  38. print('\n - Avkok: {0:.1f}%'.format(round(m, 1)))
  39. print(' - Teoretisk utbytte før kok: {}'.format(o))
  40. print('\n-------------------------------------------')
  41.  
  42. print('\n--GJÆRING--')
  43. j = float(raw_input('OG.........................: '))
  44. k = raw_input('Volum til gjæring..........: ')
  45.  
  46. p = (j - 1) / (o - 1)
  47. q = 100 * p
  48. print('\n - Brygghuseffektivitet: {0:.1f}%'.format(round(q, 1)))
  49. print('\n-------------------------------------------')
  50. f = open('b.pal', 'a')
  51.  
  52. print('{} {}'.format(time.strftime('%Y%m%d'), a), file=f)
  53. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement