Try it live: Streamlit Community Cloud App
View the code: GitHub Repository
This project is an interactive Streamlit simulator that teaches one business event from two angles:
- The Auditor's View (financial accounting / GAAP reporting)
- The CFO's View (managerial accounting / decision support)
Learners make a first-pass guess, then reveal guided feedback and side-by-side analysis.
Built by an MBA student with a background in IT, this tool was created to bridge the gap between classroom accounting theory and the decision-making reality faced by executives. Every scenario forces you to reconcile what the books say with what a manager actually needs to know.
- Engine-driven random scenario generation via
AccountingScenarioEngineinengine.py - 14 built-in scenarios across financial accounting and managerial decision contexts
- A focal account prompt for debit/credit and increase/decrease reasoning
- Decision-mode scenarios that intentionally produce no journal entry until execution
- Explicit "Today" vs "Future Period" effects for accounting and cash flow timing
- Four managerial lens categories with definitions shown in the UI
- Teaching feedback for common misconceptions after reveal
- Modern warm light-themed Streamlit UI in
app.py
- Cash vs. Accrual Timing
- Cost Behavior
- Incremental Analysis
- Working Capital & Liquidity
- Prepaid Insurance
- Machine Purchase and Depreciation
- Credit Sale
- Cash Received Before Service
- Accrued Wages
- Multi-Period Subscription
- Inventory Purchase on Credit
- Early Payment Discount
- Bad Debt Estimate
- Special Order Decision
- Make vs. Buy Decision
- R&D Spend - Sunk Cost
- Automation - Fixed vs. Variable Cost Tradeoff
- Production Volume Increase - Fixed Cost Dilution
- Generate a scenario.
- Make an accounting guess:
- Transaction scenarios: choose debit/credit direction and whether the focal account increases or decreases.
- Decision scenarios: decide whether a journal entry exists today.
- Choose the most relevant managerial lens.
- Reveal analysis to see:
- Guess feedback and teaching notes
- The Auditor's View: journal lines and net income timing
- The CFO's View: lens rationale, metric output, and cash timing
- Install dependencies:
pip install -r requirements.txt- Launch the app:
streamlit run app.pyCurrent runtime dependency:
- streamlit (see
requirements.txt)
app.py: Streamlit UI, state management, guessing workflow, and renderingengine.py: data models, lens taxonomy, and scenario generation logicrequirements.txt: Python dependencies
- Persist learner progress and streaks in session or local storage
- Add scenario filtering by lens or topic
- Add instructor mode with deterministic seeds
- Add difficulty settings and adaptive feedback depth