This Python program calculates progression outcomes based on user input of PASS, DEFER, and FAIL credits. The outcomes include "Progress," "Progress(module trailer)," "Module Retriever," and "Exclude." The program also provides a histogram of the distribution of outcomes.
This program takes user input for PASS, DEFER, and FAIL credits and determines the progression outcome based on certain criteria. The outcomes are then stored in a file, and a graphical histogram is displayed.
- Python 3.x
graphics
module (make sure to install it usingpip install graphics
)
- Run the script in a Python environment.
- Enter the total PASS, DEFER, and FAIL credits when prompted.
- The program will determine the progression outcome and display it.
- You can enter multiple sets of data or quit to view the overall results.
The program defines a custom exception, OutOfRangeError
, which is raised when credits entered are out of the allowed range.
The program reads and writes data to a file (data.txt
). It stores each set of credits and outcomes for future reference.
The program provides a graphical histogram of the distribution of progression outcomes. The bars represent the counts of different outcomes, and the total is displayed for reference.
Note: The graphical part of the program requires the graphics
module, and a window will pop up to display the histogram.Graphics Reference (graphics.py v5) - https://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf
Feel free to contribute, report issues, or suggest improvements!