Giter VIP home page Giter VIP logo

combinedlettersprocessor's Introduction

Console Application for Processing Admission and Scholarship Letters

Overview

This console application processes daily admission and scholarship letters, archives them, and combines letters for students who have received both types. It then generates a report of combined letters.

Setup

Directory Structure

Ensure that the directory structure is set up as follows:

  • CombinedLetters
    • Input
      • Admission
        • 'yyyymmdd' format folder
      • Scholarship
        • 'yyyymmdd' format folder
    • Archive
    • Output

File Generation

Use the RandomFileGen.py script to generate sample admission and scholarship letters. Modify the path on line 5 of the script to point to the appropriate directories under the Input folder. The script will create 10 files for each, labeled with a random university ID and containing a placeholder text.

Moving Files

After generating the files, manually move them from the Input directory to a subdirectory named with the current date in yyyyMMdd format under both the Admission and Scholarship folders.

Configuration

In Program.cs, update the path for the root directory at line 33 to match your local setup. This ensures the application points to the correct root directory of your structured folders.

Running the Application

To run the application, compile and execute Program.cs. Ensure your development environment is set up to compile C# projects, such as having .NET SDK installed and configured.

Testing(test cases)

  1. Current Date Processing: Test by running the code on the current date after setting up the folders correctly. This should process the letters for today, archive them, and generate the output and report.
  2. No Folder for Today: Test by not creating a folder for today’s date. The application should output a message indicating missing folders.
  3. Backlog Processing: Modify the last report's date to test the application's ability to process data for previous dates that were missed; more randomly generated files are required for this in each "yyyymmdd" input folder.
  4. Repeated Execution: Run the application twice on the same day to ensure it doesn't reprocess already handled data.
  5. Accuracy: Make sure to change a few IDs in the Admission or Scholarship folder so that it can be confirmed that the code excludes those IDs that are not in both the Admission and Scholarship folders.

Ensure that after each test:

  • The Archive folder contains all files processed for the date.
  • The Output folder includes combined letters and the report.txt detailing the operations.

Notes

  • Make sure Python is installed for running 'RandomFileGen.py'.
  • Adjust paths in the Python script and 'Program.cs' as needed based on your environment.

combinedlettersprocessor's People

Contributors

namanmehta1208 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.