README.md (2547B)
1 > [!TIP] 2 > ## SEMESTER 2: ACTIVE CONTENT 3 > 4 > This folder contains all my current academic work, including practicals, assignments, and study materials for the BSc Computer Science program **(SEM-2)** at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). 5 > 6 > **Current Status:** 7 > * **Actively Updated:** New code and materials are added following the college schedule. 8 > 9 > **Explore More:** 10 > * See my other projects on my [**Portfolio**](https://amit.is-a.dev/) 11 > * Follow my development journey on [**GitHub**](https://github.com/notamitgamer) 12 13 ## Directory Structure 14 15 To keep the repository organized, the C++ and Python programs are divided into specific categories based on their origin and purpose. 16 17 ### C++ Programming (Data Structures) 18 * **`/assignments`**: Assignmets cpp, odt and pdf files. 19 * **`/practice/`**: General, day-to-day CPP programming practice files. 20 * **`/tuition/`**: Programs and problem-solving exercises completed during tuition classes. 21 * **`/algorithms/`**: Some algorithms. 22 ### Python Programming (SEC) 23 * **`/python/`**: Contains all SEC coursework, split into: 24 * `/code/`: Python script files (`.py`) for practicals. 25 * `/material_pdf/`: Study materials and reference documents. 26 ## How to Find a Specific Code 27 1. **Identify the Category:** Determine if the code was an assignment, a tuition exercise, or practice problem, and navigate to the corresponding folder above. 28 2. **Naming Convention:** Most files are sequentially numbered for easy tracking. 29 3. **Internal Comments:** Open the file. Most source codes include a commented section at the top detailing the exact problem statement or logic being solved. 30 ## How to Run the Programs 31 32 ### Running C++ Programs (`.cpp`) 33 Ensure you have a C++ compiler (like GCC/G++ via MinGW) installed. If you haven't set it up, refer to the [Main Repository README](../index.md) for the installation guide. 34 35 1. Open your terminal or command prompt. 36 2. Navigate to the folder containing the specific program: 37 ```bash 38 cd semester_2/assignment-primary 39 ``` 40 3. Compile the code using G++: 41 ```bash 42 g++ assignment-p-01.cpp -o program.exe 43 ``` 44 4. Execute the compiled file: 45 ```bash 46 ./program.exe 47 ``` 48 49 ### Running Python Programs (`.py`) 50 Ensure you have Python 3 installed, or run the scripts via an IDE such as VS Code or PyCharm. 51 52 #### To run via command line: 53 1. Open your terminal. 54 2. Navigate to the Python Code directory: 55 ```bash 56 cd semester_2/Python/Code 57 ``` 58 3. Execute the script using `python3`: 59 ```bash 60 python3 Python_Prac-1.py 61 ```