News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

alcohol calculation

Started by daydreamer, June 01, 2022, 04:53:16 AM

Previous topic - Next topic

daydreamer

after many drinks,how long does it take to get sober,so you can drive?
next is how is your ability to hold your liquer?
made GUI program instead
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

jj2007

Ok, and how should we interpret this output?

BAR
drinks Beer 33cl 5%
alcohol 4
drinks Rum 6cl 80%
alcohol 16
drinks Beer 33cl 5%
alcohol 20
drinks spirits 6cl 40%
alcohol 26
drinks Beer 33cl 5%
alcohol 30
drinks Rum 6cl 80%
alcohol 42
drinks Rum 6cl 80%
alcohol 54
sobering 2cl  hour 1
alcohol 52
sobering 2cl  hour 2
alcohol 50
sobering 2cl  hour 3
alcohol 48
sobering 2cl  hour 4
alcohol 46
sobering 2cl  hour 5
alcohol 44
sobering 2cl  hour 6
alcohol 42
sobering 2cl  hour 7
alcohol 40
sobering 2cl  hour 8
alcohol 38
sobering 2cl  hour 9
alcohol 36
sobering 2cl  hour 10
alcohol 34
sobering 2cl  hour 11
alcohol 32
sobering 2cl  hour 12
alcohol 30
sobering 2cl  hour 13
alcohol 28
sobering 2cl  hour 14
alcohol 26
sobering 2cl  hour 15
alcohol 24
sobering 2cl  hour 16
alcohol 22
sobering 2cl  hour 17
alcohol 20
sobering 2cl  hour 18
alcohol 18
sobering 2cl  hour 19
alcohol 16
sobering 2cl  hour 20
alcohol 14
sobering 2cl  hour 21
alcohol 12
sobering 2cl  hour 22
alcohol 10
sobering 2cl  hour 23
alcohol 8
sobering 2cl  hour 24
alcohol 6
sobering 2cl  hour 25
alcohol 4
sobering 2cl  hour 26
alcohol 2
sobering 2cl  hour 27
alcohol 0
sober after 27 hours

daydreamer

#2
first you drink in bar and alcohol shows in cl spirits adding up,vodka shots,beer glasses and wine glasses are adding spirits calculated on percentage of alcohol x glass volume
after that approximation of body takes care of 2 cl /hour spirits
showing a graf might be better
right formula for with help of bodyweight and female/male calculate promille in blood from how much cl spirits you have consumed?

wrote a GUI program instead
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding