alcoholConcentration 1.0.0

dotnet add package alcoholConcentration --version 1.0.0
NuGet\Install-Package alcoholConcentration -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="alcoholConcentration" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add alcoholConcentration --version 1.0.0
#r "nuget: alcoholConcentration, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install alcoholConcentration as a Cake Addin
#addin nuget:?package=alcoholConcentration&version=1.0.0

// Install alcoholConcentration as a Cake Tool
#tool nuget:?package=alcoholConcentration&version=1.0.0

Functions

Blood Alcohol Concentration (BAC) Calculator Blood alcohol concentration (BAC) is a commonly used measure of alcohol intoxication, also known as drunkenness. It is typically expressed as a percentage of alcohol per volume of blood

Usage

Code examples of how a component can be used.
Parameters for function AlcoholConcentration (class AlcoholConsumed)
gender - ("men"/"women")
bodyWeightKg - body weight (kilograms)
volumeMl - volume of drink taken (millilitres)
alcoholPercentage - strength of drink

var calc = new alcoholConcentration.PromilesCalculations();
var consumed = new alcoholConcentration.AlcoholConsumed("men", 68.18, 1000, 5);
var promiles = calc.AlcoholConcentration(consumed);
console.Writeline(promiles);

Parameters for function TimeToReachSoberize
class AlcoholConsumed (see above)
string T - period after consumption

var calc = new alcoholConcentration.PromilesCalculations();
var consumed = new alcoholConcentration.AlcoholConsumed("men", 68.18, 1000, 5);
var promiles = calc.TimeToReachSoberize(consumed);
console.Writeline(promiles);
`

Built With

Author

Julius

License

Distributed under the MIT License. See MIT license under About menu for more information.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 430 6/6/2022

First release