CoinCount v1.5

By Peter Cakebread 2023

CoinCount is a simple Python-based application designed to help volunteers track and count coins, calculate accuracy, and store data persistently for further reference.

Features

How It Works

  1. coin_index(cointype): This function returns the index of a specific coin type (e.g. £2, 50p) from the list of possible coins.
  2. count(): The core function where volunteers input the type of coins and the bag’s weight. The system then checks if the weight is correct for the given number of coins and records the result.
  3. stats(): Displays either individual volunteer statistics or stats for all volunteers, including accuracy and total money counted.
  4. save(): Writes the current state of the data to coincount.txt to ensure persistence.
  5. format_dat(): This function allows for wiping all data from the system.

File Structure

How to Use

  1. Run the Program:
  2. You can start the program by running the Python file.

  3. Select an Option:

  4. You will be prompted to choose from:
    • count: Begin counting coins.
    • stats: View volunteer statistics.
    • format: Wipe all stored data.
    • exit: Save and exit the program.

Example Workflow:

Dependencies

This program requires: - Python 3.x - json: The built-in JSON library is used for saving and loading volunteer data.

Installation and Setup

  1. Ensure Python 3.x is installed on your system.
  2. Clone or download this repository.
  3. Place coincount.txt in the same directory as the Python script.

License

This project is licensed under the MIT License.

Images