AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/beer2001.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Calculates the cheapest alcohol drink from a given list
Author: fedex at emsmail.net
Uploader:
Type:util/misc
Version:1.0
Architecture:m68k-amigaos
Date:2001-04-26
Download:util/misc/beer2001.lha - View contents
Readme:util/misc/beer2001.readme
Downloads:995

Beer 2001 v1.0 written by Bongoman

This is an advanced advisory system. Beer 2001 can recommend the cheapest drink with the
maximum amount of alcohol from a given list of alcoholic beverages. It can provide the
comparison of amount of alcohol in each set of drinks, including amount of standard drinks
and the price of the lot. This program uses Australian measure of a standard drink (10g of
absolute alcohol). One USA standard drink is 13.6g of absolute alcohol.

In other words, Beer 2001 calculates the cheapest way to get drunk :)

Binaries for AmigaOS, Linux i386 and Windows are included. Source code in C++.


Requirements
------------

Amiga - AmigaOS 3.0
Linux - Linux i386
Windows - Windows 9x/Me/2000/NT


Usage
-----
No arguments needed to execute. Simply answer the questions Beer 2001 asks. Example:

[14:58:06] C:\Dev\beer2001\bin\win32\ >beer2001.exe

Beer 2001 v1.0 written by Bongoman

Number of drinks to choose from
(minimum 2, maximum 8):                2
Max. amount of cash you can spend:     $30

Drink #1 details...

Name (no spaces):                      Smirnoff
Alcohol percentage:                    %37
Price for one bottle:                  $24.95
Bottle size (in mililitres):           750

Drink #2 details...

Name (no spaces):                      VictoriaBitter
Alcohol percentage:                    %4.9
Price for one bottle:                  $3
Bottle size (in mililitres):           750
------------------------------------------------

VictoriaBitter is the cheapest choice. You can buy 10 bottles for $30.

Comparison of amount of alcohol:

1 bottle of Smirnoff ($24.95) contain in total 277.5 grams of alcohol (ie 27.75 std. drinks).
10 bottles of VictoriaBitter ($30) contain in total 367.5 grams of alcohol (ie 36.75 std. drinks).

This program uses Australian measure of a standard drink (10g of absolute alcohol).


Source
------

This program comes with source code written in C++. The program is very simple and has been
successfully compiled on the following configurations:

GeekGadgets EGCS, AmigaOS 3.1
EGCS, Slackware Linux 7.1 (intel)
Borland C++ 5.5.1, Windows 98 SE


Bugs
----
Drink names cannot contain any spaces (eg. "Fosters Beer" will fail :)


Legal
-----
This program is freeware. Feel free to change the source and/or redistribute it.


Contents of util/misc/beer2001.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                54433   54433 100.0% -lh0- 61fb Apr 24  2001 beer2001/bin/amigaos/beer2001_exe.lha
[generic]                 6624    6624 100.0% -lh0- 44b1 Apr 24  2001 beer2001/bin/linux386/beer2001.gz
[generic]                76161   76161 100.0% -lh0- 9444 Apr 24  2001 beer2001/bin/win32/beer2001_exe.zip
[generic]                 1126    2443  46.1% -lh1- 12f8 Apr 24  2001 beer2001/README
[generic]                   88      97  90.7% -lh1- b90f Apr 24  2001 beer2001/src/amiga_make
[generic]                 1224    3247  37.7% -lh1- bb85 Apr 24  2001 beer2001/src/beer2001.cpp
[generic]                  104     116  89.7% -lh1- 75e7 Apr 24  2001 beer2001/src/linux_make
[generic]                  117     135  86.7% -lh1- aa6f Apr 24  2001 beer2001/src/win_make.bat
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         8 files  139877  143256  97.6%            Apr 26  2001
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>