# nourhan-h1/pa_course_05_algorithms-problem-solving- architecture

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

- Interactive diagram: https://gitdiagram.com/nourhan-h1/pa_course_05_algorithms-problem-solving-
- Repository: https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-

## Overview

This is a collection of independent C++ course exercises, not a single application or shared library. Most Problem files are standalone console programs covering numeric and digit algorithms, patterns/text, random generation, arrays, and elementary math. The two Projects are complete console games: Rock Paper Scissors runs rounds and reports a winner; Math Quiz configures questions, grades answers, and reports results. The graph groups exercises by topic; edges are shown only for relationships visible in sampled source or documented in the README. The unsampled exercises are not assumed to share code.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_numeric["Numbers and Digits"]
  node_p01["Multiplication Table"]
  node_p02["Prime Numbers"]
  node_p03["Perfect Number"]
  node_p04["Perfect Numbers"]
  node_p05["Reverse Digits"]
  node_p06["Digit Sum"]
  node_p07["Reverse Number"]
  node_p08["Digit Frequency"]
  node_p09["All Digit Frequencies"]
  node_p10["Digits in Order"]
  node_p11["Number Palindrome"]
end

subgraph group_patterns["Patterns and Text"]
  node_p12["Inverted Number Pattern"]
  node_p13["Number Pattern"]
  node_p14["Inverted Letter Pattern"]
  node_p15["Letter Pattern"]
  node_p16["Letter Combinations"]
  node_p18["Text Encryption"]
  node_p19["Random Numbers"]
  node_p20["Random Characters"]
  node_p21["Random Keys"]
end

subgraph group_arrays["Array Exercises"]
  node_p22["Array Frequency"]
  node_p23["Random Array"]
  node_p24["Array Maximum"]
  node_p25["Array Minimum"]
  node_p26["Array Sum"]
  node_p27["Array Average"]
  node_p28["Array Copy"]
  node_p29["Prime Filter"]
  node_p30["Pairwise Array Sum"]
  node_p31["Array Shuffle"]
  node_p32["Reverse Array Copy"]
  node_p33["Keys Array"]
  node_p34["Array Search"]
  node_p35["Existence Check"]
end

subgraph group_math["Math Utilities"]
end

subgraph group_games["Console Games"]
end

click node_p01 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem01_MultiplicationTable.cpp"
click node_p02 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem02_PrimeNumbers.cpp"
click node_p03 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem03_PerfectNumber.cpp"
click node_p04 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem04_PerfectNumbersFrom1ToN.cpp"
click node_p05 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem05_PrintDigitsInReverse.cpp"
click node_p06 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem06_SumOfDigits.cpp"
click node_p07 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem07_ReverseNumber.cpp"
click node_p08 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem08_DigitFrequencyCounter.cpp"
click node_p09 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem09_AllDigitsFrequency.cpp"
click node_p10 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem10_PrintDigitsInOrder.cpp"
click node_p11 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem11_PalindromeNumber.cpp"
click node_p12 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem12_InvertedNumberPattern.cpp"
click node_p13 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem13_NumberPattern.cpp"
click node_p14 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem14_InvertedLetterPattern.cpp"
click node_p15 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem15_LetterPattern.cpp"
click node_p16 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem16_AAA_To_ZZZ_Generator.cpp"
click node_p18 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem18_TextEncryptionDecryption.cpp"
click node_p19 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem19_RandomNumbers.cpp"
click node_p20 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem20_RandomCharacterGenerator.cpp"
click node_p21 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem21_RandomKeysGenerator.cpp"
click node_p22 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem22_NumberFrequencyInArray.cpp"
click node_p23 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem23_FillArrayWithRandomNumbers.cpp"
click node_p24 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem24_MaxNumberInArray.cpp"
click node_p25 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem25_MinNumber.cpp"
click node_p26 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem26_SumOfRandomArray.cpp"
click node_p27 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem27_AverageOfRandomArray.cpp"
click node_p28 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem28_CopyRandomArray.cpp"
click node_p29 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem29_CopyOnlyPrimeNumbers.cpp"
click node_p30 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem30_SumOfTwoArrays.cpp"
click node_p31 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem31_ShuffleArray.cpp"
click node_p32 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem32_CopyArrayInReverse.cpp"
click node_p33 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem33_GenerateKeysArray.cpp"
click node_p34 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem34_SearchForNumberInRandomArray.cpp"
click node_p35 "https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem35_CheckIfNumberExists.cpp"

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_p01,node_p02,node_p03,node_p04,node_p05,node_p06,node_p07,node_p08,node_p09,node_p10,node_p11 toneBlue
class node_p12,node_p13,node_p14,node_p15,node_p16,node_p18,node_p19,node_p20,node_p21 toneAmber
class node_p22,node_p23,node_p24,node_p25,node_p26,node_p27,node_p28,node_p29,node_p30,node_p31,node_p32,node_p33,node_p34,node_p35 toneMint
```

## Components

### Numbers and Digits

- [Multiplication Table](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem01_MultiplicationTable.cpp): `Problem01_MultiplicationTable.cpp`
- [Prime Numbers](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem02_PrimeNumbers.cpp): `Problem02_PrimeNumbers.cpp`
- [Perfect Number](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem03_PerfectNumber.cpp): `Problem03_PerfectNumber.cpp`
- [Perfect Numbers](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem04_PerfectNumbersFrom1ToN.cpp): `Problem04_PerfectNumbersFrom1ToN.cpp`
- [Reverse Digits](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem05_PrintDigitsInReverse.cpp): `Problem05_PrintDigitsInReverse.cpp`
- [Digit Sum](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem06_SumOfDigits.cpp): `Problem06_SumOfDigits.cpp`
- [Reverse Number](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem07_ReverseNumber.cpp): `Problem07_ReverseNumber.cpp`
- [Digit Frequency](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem08_DigitFrequencyCounter.cpp): `Problem08_DigitFrequencyCounter.cpp`
- [All Digit Frequencies](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem09_AllDigitsFrequency.cpp): `Problem09_AllDigitsFrequency.cpp`
- [Digits in Order](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem10_PrintDigitsInOrder.cpp): `Problem10_PrintDigitsInOrder.cpp`
- [Number Palindrome](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem11_PalindromeNumber.cpp): `Problem11_PalindromeNumber.cpp`

### Patterns and Text

- [Inverted Number Pattern](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem12_InvertedNumberPattern.cpp): `Problem12_InvertedNumberPattern.cpp`
- [Number Pattern](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem13_NumberPattern.cpp): `Problem13_NumberPattern.cpp`
- [Inverted Letter Pattern](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem14_InvertedLetterPattern.cpp): `Problem14_InvertedLetterPattern.cpp`
- [Letter Pattern](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem15_LetterPattern.cpp): `Problem15_LetterPattern.cpp`
- [Letter Combinations](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem16_AAA_To_ZZZ_Generator.cpp): `Problem16_AAA_To_ZZZ_Generator.cpp`
- [Text Encryption](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem18_TextEncryptionDecryption.cpp): `Problem18_TextEncryptionDecryption.cpp`
- [Random Numbers](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem19_RandomNumbers.cpp): `Problem19_RandomNumbers.cpp`
- [Random Characters](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem20_RandomCharacterGenerator.cpp): `Problem20_RandomCharacterGenerator.cpp`
- [Random Keys](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem21_RandomKeysGenerator.cpp): `Problem21_RandomKeysGenerator.cpp`

### Array Exercises

- [Array Frequency](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem22_NumberFrequencyInArray.cpp): `Problem22_NumberFrequencyInArray.cpp`
- [Random Array](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem23_FillArrayWithRandomNumbers.cpp): `Problem23_FillArrayWithRandomNumbers.cpp`
- [Array Maximum](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem24_MaxNumberInArray.cpp): `Problem24_MaxNumberInArray.cpp`
- [Array Minimum](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem25_MinNumber.cpp): `Problem25_MinNumber.cpp`
- [Array Sum](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem26_SumOfRandomArray.cpp): `Problem26_SumOfRandomArray.cpp`
- [Array Average](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem27_AverageOfRandomArray.cpp): `Problem27_AverageOfRandomArray.cpp`
- [Array Copy](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem28_CopyRandomArray.cpp): `Problem28_CopyRandomArray.cpp`
- [Prime Filter](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem29_CopyOnlyPrimeNumbers.cpp): `Problem29_CopyOnlyPrimeNumbers.cpp`
- [Pairwise Array Sum](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem30_SumOfTwoArrays.cpp): `Problem30_SumOfTwoArrays.cpp`
- [Array Shuffle](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem31_ShuffleArray.cpp): `Problem31_ShuffleArray.cpp`
- [Reverse Array Copy](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem32_CopyArrayInReverse.cpp): `Problem32_CopyArrayInReverse.cpp`
- [Keys Array](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem33_GenerateKeysArray.cpp): `Problem33_GenerateKeysArray.cpp`
- [Array Search](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem34_SearchForNumberInRandomArray.cpp): `Problem34_SearchForNumberInRandomArray.cpp`
- [Existence Check](https://github.com/nourhan-h1/pa_course_05_algorithms-problem-solving-/blob/main/Problem35_CheckIfNumberExists.cpp): `Problem35_CheckIfNumberExists.cpp`
