Skip to content

Solutions for the assignments in System Programming Laboratorycourse of The Open University

Notifications You must be signed in to change notification settings

YaelGluskin/System-Programming-Laboratory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Programming Laboratory

Welcome to the repository for assignments from the System Programming Laboratory course at the Open University, focusing on C language programming. Each folder in this repository represents a different assignment completed during the course.

Assignments Overview

Assignment 1:

Maman11Q1

Description:

This program get a string as a parameter and sends it to a function that detects sequences in it, shortens it accordingly, and prints it when it is shortened.

Files:

  • abc.c: Runs the program
  • makefile:

Maman11Q2

Description:

This program performs b bits rotation on the a parameter.

Files:

  • my_rottate.c: This program performs a b-bit rotation on the a parameter.
  • makefile.h:

Assignment 2: Maman12Q1

Description:

The program compares the len bytes, starting from where 1b points, to the len bytes, starting from where 2b points

Files:

  • my_bcmp.c: The program compares the len bytes, starting from where 1b points, to the len bytes, starting from where 2b points
  • makefile.h:

Assignment 3: Maman22

Description:

This program performs set operations on six sets (A, B, C, D, E, F) using various commands.

Files:

  • myset.c: Main program that utilizes set operations and functions.
  • set.c: File defining set operations and functions.
  • set.h: Header file defining set operations and functions.
  • valid_func.c: File containing validation functions for the program.
  • valid_func.h: Header file containing validation functions for the program.
  • makefile.h:

Assignment 4: Maman23

Description:

The Permutation Checker is a simple C program designed to check for permutations of a given word within a text file.

Files:

  • permut.c: Utilizes the is_permut function to identify and print permutations found in the specified file.
  • permut.h: Header file.
  • makefile.h:

Instructions

To explore the assignments, navigate to the respective folders and review the README or source code files. Each assignment folder contains its own set of instructions, source code, and necessary files. How to Run:

  1. Open a terminal in the project directory.
  2. Run the make command that will use the makefile
     make
    The terminal output will be somthing like this:
    gcc -g -ansi -Wall -pedantic my_progrem.c -o run
  3. Run the command:
    ./run
  4. To end your input press enter than ctrl Z and enter again.

Notes

  • Ensure you have a compatible C compiler (e.g., GCC) installed on your system.
  • If running on Windows with MinGW, use mingw32-make instead of make.
  • You can also run useing the VS comailer.

Feel free to explore the assignments, learn from the code, and use them as a reference for your own learning journey. If you have any questions or improvements, feel free to open an issue or contribute!

Happy coding!

About

Solutions for the assignments in System Programming Laboratorycourse of The Open University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published