README.md (2489B)
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 * **`/practice/`**: General, day-to-day CPP programming practice files. 19 * **`/tuition/`**: Programs and problem-solving exercises completed during tuition classes. 20 * **`/algorithms/`**: Some algorithms. 21 ### Python Programming (SEC) 22 * **`/python/`**: Contains all SEC coursework, split into: 23 * `/code/`: Python script files (`.py`) for practicals. 24 * `/material_pdf/`: Study materials and reference documents. 25 ## How to Find a Specific Code 26 1. **Identify the Category:** Determine if the code was an assignment, a tuition exercise, or practice problem, and navigate to the corresponding folder above. 27 2. **Naming Convention:** Most files are sequentially numbered for easy tracking. 28 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. 29 ## How to Run the Programs 30 31 ### Running C++ Programs (`.cpp`) 32 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. 33 34 1. Open your terminal or command prompt. 35 2. Navigate to the folder containing the specific program: 36 ```bash 37 cd semester_2/assignment-primary 38 ``` 39 3. Compile the code using G++: 40 ```bash 41 g++ assignment-p-01.cpp -o program.exe 42 ``` 43 4. Execute the compiled file: 44 ```bash 45 ./program.exe 46 ``` 47 48 ### Running Python Programs (`.py`) 49 Ensure you have Python 3 installed, or run the scripts via an IDE such as VS Code or PyCharm. 50 51 #### To run via command line: 52 1. Open your terminal. 53 2. Navigate to the Python Code directory: 54 ```bash 55 cd semester_2/Python/Code 56 ``` 57 3. Execute the script using `python3`: 58 ```bash 59 python3 Python_Prac-1.py 60 ```