# sandhumanteshwarsingh-del/cs50p architecture

> Architecture diagram of the GitHub repository sandhumanteshwarsingh-del/cs50p, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sandhumanteshwarsingh-del/cs50p
- Repository: https://github.com/sandhumanteshwarsingh-del/cs50p

## Overview

This repository is a collection of independent command-line Python exercises, organized into week 0 and week 1. The common workflow is user input, a small calculation or text classification, and printed output; there is no shared application runtime or cross-exercise data flow. The graph preserves the listed exercises without implying they call one another. Source excerpts show the input/output edges for most exercises; the read-but-unexcerpted files are included, but their behavior and connections are not inferred.

Main entry points: [`week0/calculator.py`](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/calculator.py) (Integer And String Calculator), [`week0/einstein/einstein.py`](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/einstein/einstein.py) (Mass Energy Calculator), [`week0/faces/faces.py`](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/faces/faces.py) (Emoji Converter), [`week0/indoor/indoor.py`](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/indoor/indoor.py) (Indoor Voice)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_week0["Week 0 Exercises"]
  node_calculator["Integer And String Calculator<br/>[calculator.py]"]
  node_define["Define Exercise<br/>[define.py]"]
  node_einstein["Mass Energy Calculator<br/>[einstein.py]"]
  node_faces["Emoji Converter<br/>[faces.py]"]
  node_hello["Hello Exercise<br/>[hello.py]"]
  node_indoor["Indoor Voice<br/>[indoor.py]"]
  node_playback["Playback Slowdown<br/>[playback.py]"]
  node_square["Square Exercise<br/>[square.py]"]
  node_tip["Tip Calculator<br/>[tip.py]"]
end

subgraph group_week1["Week 1 Exercises"]
  node_bank["Bank Greeting<br/>[bank.py]"]
  node_compare["Number Comparison<br/>[compare.py]"]
  node_deep["Answer Checker<br/>[deep.py]"]
  node_extensions["File Type Classifier<br/>[extensions.py]"]
  node_interpreter["Arithmetic Interpreter<br/>[interpreter.py]"]
  node_meal["Meal Time Classifier<br/>[meal.py]"]
end

node_user(("User"))
node_console(("Console"))

node_user -->|"enters values"| node_calculator
node_calculator -->|"prints results"| node_console
node_user -->|"enters mass"| node_einstein
node_einstein -->|"prints energy"| node_console
node_user -->|"enters text"| node_faces
node_faces -->|"prints conversion"| node_console
node_user -->|"enters text"| node_indoor
node_indoor -->|"prints lowercase"| node_console
node_user -->|"enters text"| node_playback
node_playback -->|"prints slowed text"| node_console
node_user -->|"enters bill details"| node_tip
node_tip -->|"prints tip"| node_console
node_user -->|"enters greeting"| node_bank
node_bank -->|"prints amount"| node_console
node_user -->|"enters numbers"| node_compare
node_compare -->|"prints comparison"| node_console
node_user -->|"enters answer"| node_deep
node_deep -->|"prints verdict"| node_console
node_user -->|"enters filename"| node_extensions
node_extensions -->|"prints file type"| node_console
node_user -->|"enters expression"| node_interpreter
node_interpreter -->|"prints result"| node_console
node_user -->|"enters time"| node_meal
node_meal -->|"prints meal status"| node_console

click node_calculator "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/calculator.py"
click node_define "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/define.py"
click node_einstein "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/einstein/einstein.py"
click node_faces "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/faces/faces.py"
click node_hello "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/hello.py"
click node_indoor "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/indoor/indoor.py"
click node_playback "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/playback/playback.py"
click node_square "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/square.py"
click node_tip "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/tip/tip.py"
click node_bank "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/bank/bank.py"
click node_compare "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/compare.py"
click node_deep "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/deep/deep.py"
click node_extensions "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/extensions/extensions.py"
click node_interpreter "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/interpreter/interpreter.py"
click node_meal "https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/meal/meal.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_calculator,node_define,node_einstein,node_faces,node_hello,node_indoor,node_playback,node_square,node_tip,node_user toneBlue
class node_bank,node_compare,node_deep,node_extensions,node_interpreter,node_meal toneAmber
class node_console toneIndigo
```

## Components

### Week 0 Exercises

- [Integer And String Calculator](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/calculator.py): `week0/calculator.py`
- [Define Exercise](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/define.py): `week0/define.py`
- [Mass Energy Calculator](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/einstein/einstein.py): `week0/einstein/einstein.py`
- [Emoji Converter](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/faces/faces.py): `week0/faces/faces.py`
- [Hello Exercise](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/hello.py): `week0/hello.py`
- [Indoor Voice](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/indoor/indoor.py): `week0/indoor/indoor.py`
- [Playback Slowdown](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/playback/playback.py): `week0/playback/playback.py`
- [Square Exercise](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/square.py): `week0/square.py`
- [Tip Calculator](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week0/tip/tip.py): `week0/tip/tip.py`

### Week 1 Exercises

- [Bank Greeting](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/bank/bank.py): `week1/bank/bank.py`
- [Number Comparison](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/compare.py): `week1/compare.py`
- [Answer Checker](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/deep/deep.py): `week1/deep/deep.py`
- [File Type Classifier](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/extensions/extensions.py): `week1/extensions/extensions.py`
- [Arithmetic Interpreter](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/interpreter/interpreter.py): `week1/interpreter/interpreter.py`
- [Meal Time Classifier](https://github.com/sandhumanteshwarsingh-del/cs50p/blob/master/week1/meal/meal.py): `week1/meal/meal.py`

### Other components

- **User**
- **Console**

## Connections

- User → Integer And String Calculator: enters values (evidence: `week0/calculator.py`)
- Integer And String Calculator → Console: prints results (evidence: `week0/calculator.py`)
- User → Mass Energy Calculator: enters mass (evidence: `week0/einstein/einstein.py`)
- Mass Energy Calculator → Console: prints energy (evidence: `week0/einstein/einstein.py`)
- User → Emoji Converter: enters text (evidence: `week0/faces/faces.py`)
- Emoji Converter → Console: prints conversion (evidence: `week0/faces/faces.py`)
- User → Indoor Voice: enters text (evidence: `week0/indoor/indoor.py`)
- Indoor Voice → Console: prints lowercase (evidence: `week0/indoor/indoor.py`)
- User → Playback Slowdown: enters text (evidence: `week0/playback/playback.py`)
- Playback Slowdown → Console: prints slowed text (evidence: `week0/playback/playback.py`)
- User → Tip Calculator: enters bill details (evidence: `week0/tip/tip.py`)
- Tip Calculator → Console: prints tip (evidence: `week0/tip/tip.py`)
- User → Bank Greeting: enters greeting (evidence: `week1/bank/bank.py`)
- Bank Greeting → Console: prints amount (evidence: `week1/bank/bank.py`)
- User → Number Comparison: enters numbers (evidence: `week1/compare.py`)
- Number Comparison → Console: prints comparison (evidence: `week1/compare.py`)
- User → Answer Checker: enters answer (evidence: `week1/deep/deep.py`)
- Answer Checker → Console: prints verdict (evidence: `week1/deep/deep.py`)
- User → File Type Classifier: enters filename (evidence: `week1/extensions/extensions.py`)
- File Type Classifier → Console: prints file type (evidence: `week1/extensions/extensions.py`)
- User → Arithmetic Interpreter: enters expression (evidence: `week1/interpreter/interpreter.py`)
- Arithmetic Interpreter → Console: prints result (evidence: `week1/interpreter/interpreter.py`)
- User → Meal Time Classifier: enters time (evidence: `week1/meal/meal.py`)
- Meal Time Classifier → Console: prints meal status (evidence: `week1/meal/meal.py`)
