Giter Site home page Giter Site logo

filecomparison's Introduction

FileComparison

This repositry documents a file comperator I've implemented as part of Operation Systems course I took at Bar-Ilan University.

Part 1 - ex31.c

In this part I've implemented a program that gets pathes to two files and returns:

  • 1, if the files are identical - both files contains exactly the same contant.
  • 3, is the files are similar - the difference between the files is about spaces and lower/upper-case letters.
  • 2, if the files are different - the files are not identical nor similar.

For example, all the following files are similar: File A: 12ab23 File B: 12Ab23 File C: 12aB23 File D: 12AB23 File E: 12 aB 23 File F: 12 ab2 3

Part 2 - ex32.c

In this part I've implemented a program that gets a path to a configuration file that contains 3 lines: Line 1: Path to a folder that contains subfolders. At the first level (one inside), each folder represents User, and should contain a C file. Line 2: Path to file containing input. Line 3: A path to a file that contains the correct output for the line 2 input file. The configuration file will end in a line drop character.

Note: simulation files attached ex3_resources.zip file.

This program enters each subdirectory of the directory given in line 1 of the configuration file, look for a C file (in each folder), compile it (if found), run it, and then use ex31.c program to compare the output to the correct output as shown in the file located in the path given in line 3 of the configuration file. The output of the program is a CSV file that gives grades for every sub-program output according to ex31.c test (map subdirectory name to a numberic grade).

Grading System:

  1. NO_C_FILE 0
  2. COMPILATION_ERROR 10
  3. TIMEOUT 20
  4. WRONG 50
  5. SIMILAR 75
  6. EXCELLENT 100

IDE and tools

  1. Visual Studio Code
  2. Notpad++

filecomparison's People

Contributors

shlomi1993 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.