Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivanrj7j/1st-year-pspt-project

This repository contains solutions for Assignment - 1 of the Problem Solving and Programming Techniques course. The assignment covers basic algorithm, flowchart, and C programming tasks.. Do not copy the homework 😃
https://github.com/ivanrj7j/1st-year-pspt-project

algorithms

Last synced: 10 days ago
JSON representation

This repository contains solutions for Assignment - 1 of the Problem Solving and Programming Techniques course. The assignment covers basic algorithm, flowchart, and C programming tasks.. Do not copy the homework 😃

Awesome Lists containing this project

README

        

# Problem Solving and Programming Techniques

## Warning

The algorithm and flowcharts are automatically generated from the source code

## Assignment - 1

This repository contains solutions for **Assignment - 1** of the **Problem Solving and Programming Techniques** course. The assignment covers basic algorithm, flowchart, and C programming tasks.

## Author
**Name:** Ivan Raphel Jaison
**Semester:** 1
**Course:** AI and ML
**College:** Mar Athanasius College of Engineering

## Questions and Solutions
The project addresses the following problems:

1. **Check if a number is a palindrome**
- Algorithm
- Flowchart
- C Program

2. **Check if a number is a prime number**
- Algorithm
- Flowchart
- C Program

3. **Print Fibonacci numbers**
- Algorithm
- Flowchart
- C Program

4. **Sum the following series for n terms:**
- (a) \( 1 + \frac{1}{8} + \frac{1}{27} + \dots + \frac{1}{n^3} \)
- (b) \( 1 + \frac{x^2}{2!} + \dots + \frac{x^{2n}}{(2n)!} \)
- Algorithm
- Flowchart
- C Program

5. **Print the following pattern for n rows (n=2):**
- Input: `n=4`
```
1
12
123
1234
```
- Algorithm
- Flowchart
- C Program

## Project Structure
The project is divided into three main folders:

- **src**:
This folder contains the C programs for each problem. These are the actual implementation files where the logic for palindrome check, prime number check, Fibonacci series, series summation, and pattern printing is written in C.

- **algorithms**:
This folder contains `.algo` files for each problem. Each `.algo` file describes the step-by-step algorithm used to solve the corresponding problem. These algorithms serve as a blueprint before writing the C programs.

- **flowcharts**:
This folder contains flowchart diagrams for each problem. Flowcharts visually represent the logic and flow of the program, making it easier to understand the control flow and decision-making processes in the solution.

## Warning
Please do not plagiarize. Ensure that all work submitted is your own. This is for reference purposes only. I will not be responsible if copying this gets you into trouble.