[译]BAC Calc
By robot-v1.0
本文链接 https://www.kyfws.com/applications/bac-calc-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 509 个词 阅读量 0[译]BAC Calc
原文地址:https://www.codeproject.com/Articles/8910/BAC-Calc
原文作者:Adam McKee
译文由本站 robot-v1.0 翻译
前言
Blood-alcohol level calculator.
血液酒精水平计算器.
介绍(Introduction)
一个方便的丹尼尔血液酒精计算器.显然,这并不是用作精确的测量设备,而只是粗略的估计.(A handy-dandy blood-alcohol calculator. Obviously, this isn’t to be used as an accurate measuring device, just rough estimate.)
背景(Background)
找到一张照片(Found a picture) 这里(here) 带有BAC公式,所以我将其编码为周末使用.(that had a BAC formula, so I coded it for weekend use.)
使用代码(Using the code)
根据需要更改值,估计的BAC将自动更新.这是好奇的公式.(Change the values as needed, your estimated BAC will update automagically. Here’s the formula, for the curious.)
(Number of drinks / 2) * (9 / Weight for Men OR 7.5 /
Weight for Women) - (.016 * Hours Drinking) = BAC
兴趣点(Points of Interest)
将表单的"值更改"(或等效值)上的所有控件设置为相同的"(Setting all controls on the forms' ‘value changed’ (or equivalent) to the same ‘) calc()
‘该函数只需要很少的代码.(’ function made for little code.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C# C++ Windows .NET .NET1.0 Visual-Studio Dev 新闻 翻译