How cs5004-5010-2026/class-01 works
This repository is an educational digital-clock project with Python and Java implementations. The principal workflow takes hour, minute, and second inputs, validates them, stores a canonical seconds-since-midnight value, and derives decimal, binary, hexadecimal, and raw-seconds displays. The Python implementation contains working logic and a demo; the Java class documents the same behavior but its constructor and display methods are currently TODO stubs. The graph distinguishes the implementations and avoids implying the Java workflow is complete.
Main entry points: DigitalClock.py Python demo · DigitalClock.java Java clock
Components 4
Python implementation
- Python demo
DigitalClock.py - Python clock
DigitalClock.py
Java implementation
- Java clock
src/main/java/clock/DigitalClock.java
Other components
- User
Connections 3
- User → Python demo: runs demo
DigitalClock.py - Python demo → Python clock: creates clocks
DigitalClock.py - User → Java clock: runs main
src/main/java/clock/DigitalClock.java