GithubHelp home page GithubHelp logo

isaaccheng9 / vaccine-order-processing Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 340 KB

A CLI tool to process customer orders of COVID-19 vaccines for a shipping company. Developed with C++11.

C++ 97.96% CMake 2.04%
cpp object-oriented processing vaccines shipping customer orders cpp11 valgrind cli

vaccine-order-processing's Introduction

Vaccine Order Processing System

A command-line tool to process customer orders of COVID-19 vaccines for a shipping company, developed with C++11.

For more information about the design and implementation of the program, see the design document at: /docs/Design Document - Vaccine Order Processing.pdf

Building with CMake

To build the program using CMake, run the following commands in the root directory:

  1. Configure the build: cmake -B build
  2. Run the build: cmake --build build

Usage

Once you have compiled the program, you can run it on an input file with the following command in the root directory:

./build/vaccine_order_processing <input_file>, where <input_file> is the path to the input file.

Example

We have included an example input file in: /resources/order_file.txt

To run the program on the example file, run the following command in the root directory:

./build/vaccine_order_processing resources/order_file.txt

Input File Format

You can also create your own input file. The program accepts input files with the following format:

New Customer Record

Column Number Description
1 Always 'C'
2-5 The customer number - a four-digit, zero-padded integer
6-45 The customer's name

Sales Order Record

Column Number Description
1 Always 'S'
2-9 The order date, in the format 'YYYYMMDD'
10 The order type - 'N' for a normal order, or 'X' for an express order
11-14 The customer number of the customer creating the order
15-17 The order quantity - a three-digit, zero-padded integer

End-Of-Day Record

Column Number Description
1 Always 'E'
2-9 The date for the end of the day, in the format 'YYYYMMDD'

vaccine-order-processing's People

Contributors

isaaccheng9 avatar

Stargazers

 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.