Skip to content

kavyabhand/Problem-Solving-And-Programming

Repository files navigation

Problem Solving and Programming Assignments

This repository contains solutions to programming assignments for the subject CS1012: Problem Solving and Programming. Each assignment focuses on a specific topic in C programming, with problems implemented in separate files and organized by concept.

Table of Contents

  1. Problem Solving and Program Structures
    • Writing algorithms and drawing flowcharts
  2. Operators and Expressions
    • Assignments based on arithmetic, relational, logical, and bitwise operators
  3. Control Structures and Loops
    • Assignments using if-else, switch-case, for, while, and do-while loops
  4. Arrays
    • Assignments on 1D and 2D arrays: declaration, initialization, traversal, and manipulation
  5. Functions and Recursion
    • Assignments on user-defined functions, recursion, and parameter passing
  6. Structure and Union
    • Assignments on defining and using structures and unions
  7. Pointers
    • Assignments on pointer basics, pointer arithmetic, and pointer applications
  8. File Handling
    • Assignments on reading, writing, and manipulating files

Assignment Details

1. Problem Solving and Program Structures

  • Develop algorithms and draw flowcharts for basic programming problems.

2. Operators and Expressions

  • Implement programs using various operators and expressions in C.

3. Control Structures and Loops

  • Solve problems using conditional statements and loops.

4. Arrays

  • Work with single-dimensional and multi-dimensional arrays for data storage and manipulation.

5. Functions and Recursion

  • Create modular programs using functions and recursive techniques.

6. Structure and Union

  • Use structures and unions to group related data and manage complex data types.

7. Pointers

  • Apply pointers for efficient memory management and advanced programming techniques.

8. File Handling

  • Read from and write to files, process file data, and perform file operations.

Each program is self-contained and can be found in its respective folder (Assignment-1 to Assignment-8). Please refer to the folder and file names for the corresponding assignment and question.

How to Use

  • Navigate to the relevant assignment folder.
  • Each question is implemented in a separate .c file.
  • Compile and run the C files using a C compiler (e.g., GCC).

Academic Purpose

This repository is intended for academic use, providing structured solutions to foundational programming concepts in C. It serves as a reference for students learning problem solving, programming logic, and C language fundamentals.


About

This repository contains all the assignments performed for the subject CS1012-PSAP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages