commit f44c5b90af113b8a190a3ddc4bd7a212ac53aa48 parent a62796097d067e4b13e9d503375b6cdddd3d1214 Author: Amit Dutta <amitdutta4255@gmail.com> Date: Thu, 18 Jun 2026 20:08:39 +0530 start of 2nd sem Diffstat:
| A | docs-new/semester_2/python/code/code_01.md | | | 63 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | docs-new/semester_2/python/code/index.md | | | 10 | ++++++++++ |
| M | docs-new/semester_2/python/index.md | | | 6 | ++++++ |
| A | docs-new/semester_2/tuition/apc_001.md | | | 60 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | docs-new/semester_2/tuition/index.md | | | 10 | ++++++++++ |
| D | docs-new/semester_2/tutition/apc_001.md | | | 60 | ------------------------------------------------------------ |
| D | docs-new/semester_2/tutition/index.md | | | 10 | ---------- |
| R | semester_2/tutition/apc_001.cpp -> semester_2/tuition/apc_001.cpp | | | 0 |
8 files changed, 149 insertions(+), 70 deletions(-)
diff --git a/docs-new/semester_2/python/code/code_01.md b/docs-new/semester_2/python/code/code_01.md @@ -0,0 +1,63 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> code_01.py' +description: 'Coming back to basics after months.' +--- + +# code_01.py + +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jun 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + + +### Problem Statement + +::: tip Problem Statement +Coming back to basics after months. +::: + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/python/code/code_01.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_2/python/code/code_01.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```python [code_01.py] +# Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026 +# Repo: https://github.com/notamitgamer/bsc +# License: MIT + +# Coming back to basics after months. + +n = int(input("How many numbers? ")) +even_count = 0 +odd_count = 0 + +for i in range(n): + num = int(input("Enter a number: ")) + if num % 2 == 0: + even_count += 1 + else: + odd_count += 1 + +print("Even numbers:", even_count) +print("Odd numbers:", odd_count) +``` diff --git a/docs-new/semester_2/python/code/index.md b/docs-new/semester_2/python/code/index.md @@ -0,0 +1,10 @@ +# Code + +Files and sub-folders in **Code**. + +## Files + +| # | File | Link | +|---|---|---| +| 1 | `code_01.py` | [View Code](code_01.md) | + diff --git a/docs-new/semester_2/python/index.md b/docs-new/semester_2/python/index.md @@ -2,6 +2,12 @@ Files and sub-folders in **Python**. +## Folders + +| # | Folder | Link | +|---|---|---| +| 1 | Code | [Open](code/index.md) | + ## Files | # | File | Link | diff --git a/docs-new/semester_2/tuition/apc_001.md b/docs-new/semester_2/tuition/apc_001.md @@ -0,0 +1,60 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> apc_001.cpp' +description: 'Tring to remember after a year.' +--- + +# apc_001.cpp + +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jun 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + + +### Problem Statement + +::: tip Problem Statement +Tring to remember after a year. +::: + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/tuition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_2/tuition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```cpp [apc_001.cpp] +#include <iostream> +using namespace std; + +int main() { + int num, count = 0; + cout << "Enter numbers one by one (enter -1 to stop):" << endl; + + cin >> num; + while (num != -1) { + count++; + cin >> num; + } + + cout << "Total numbers entered: " << count << endl; + return 0; +} +``` diff --git a/docs-new/semester_2/tuition/index.md b/docs-new/semester_2/tuition/index.md @@ -0,0 +1,10 @@ +# Tuition + +Files and sub-folders in **Tuition**. + +## Files + +| # | File | Link | +|---|---|---| +| 1 | `apc_001.cpp` | [View Code](apc_001.md) | + diff --git a/docs-new/semester_2/tutition/apc_001.md b/docs-new/semester_2/tutition/apc_001.md @@ -1,60 +0,0 @@ ---- -title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> apc_001.cpp' -description: 'Tring to remember after a year.' ---- - -# apc_001.cpp - -### Metadata - -- **Author** — Amit Dutta (amitdutta4255@gmail.com) -- **Last updated** — 18 Jun 2026 -- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) - - -### Problem Statement - -::: tip Problem Statement -Tring to remember after a year. -::: - -## Source Code - -<div style="display:flex;gap:12px;margin-bottom:12px;"> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/tutition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> - <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> - <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> - </svg> - View on GitHub - </a> - <a href="https://raw.usercontent.amit.is-a.dev/semester_2/tutition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> - <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;"> - <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> - <polyline points="7 10 12 15 17 10"/> - <line x1="12" y1="15" x2="12" y2="3"/> - </svg> - Download Raw - </a> -</div> - -::: info Printing the code -To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. -::: -```cpp [apc_001.cpp] -#include <iostream> -using namespace std; - -int main() { - int num, count = 0; - cout << "Enter numbers one by one (enter -1 to stop):" << endl; - - cin >> num; - while (num != -1) { - count++; - cin >> num; - } - - cout << "Total numbers entered: " << count << endl; - return 0; -} -``` diff --git a/docs-new/semester_2/tutition/index.md b/docs-new/semester_2/tutition/index.md @@ -1,10 +0,0 @@ -# Tutition - -Files and sub-folders in **Tutition**. - -## Files - -| # | File | Link | -|---|---|---| -| 1 | `apc_001.cpp` | [View Code](apc_001.md) | - diff --git a/semester_2/tutition/apc_001.cpp b/semester_2/tuition/apc_001.cpp