Skip to content

nichphong/bac-computation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BAC Computation
This script reads people's alcohol intake from a file then outputs their BACs at a specified time and how long until alcohol content is cleared from the body. 

Python Installation
1. Install Python 3. Follow the instructions here: http://www.diveinto.org/python3/installing-python.html

2. Enter "python" in the terminal and make sure you're using Python 3 and not Python 2. 


Running the program
1. Your input file should be placed in the "files" folder. There are already 3 sample input files that you can try included in the folder. 

2. Open the terminal and go to the directory where BAC.py is located.

3. Enter "python BAC.py".

4. Enter the name of the text file (including the filename extension ex. sample.txt) that will be used as input.

5. The results will be shown.

About

quick programming challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages