Developed and Tested on:
OS | macOS Sierra |
---|---|
Distribution | - |
Version | 10.12.3 |
g++ Version | g++ linked to clang by Xcode |
Xcode Version | 8.1 (8B62) |
Apple LLVM Version | 8.0.0 (clang-800.0.42.1) |
Documentation Generator | Doxygen |
Clone this repository:
$ git clone https://github.com/PPL-IIITA/ppl-assignment-faheemzunjani
Change to repository's directory:
$ cd ppl-assignment-faheemzunjani
To run and test Q1:
$ cd Q1-2/
$ g++ q1.cpp ./library/*.cpp -o q1.out
$ ./q1.out
To run and test Q2:
$ cd Q1-2/
$ g++ q2.cpp ./library/*.cpp -o q2.out
$ ./q2.out
To run and test Q3:
$ cd Q3
$ g++ q3.cpp ./library/*.cpp -o q3.out
$ ./q3.out
To run and test Q4:
$ cd Q4
$ g++ q4.cpp ./library/*.cpp -o q4.out
$ ./q4.out
To run and test Q5:
$ cd Q5
$ g++ q5.cpp ./library/*.cpp -o q5.out
$ ./q5.out
To run and test Q6:
$ cd Q6
$ g++ q6.cpp ./library/*.cpp -o q6.out
$ ./q6.out
To run and test Q7:
$ cd Q7
$ g++ q7.cpp ./library/*.cpp -o q7.out
$ ./q7.out
To run and test Q11:
$ cd Q11
Open "How to build.md" file and read how to build and test driver files for each exception.
Randomly generated gift data files have been included in data/ as essential_gifts.dat, luxury_gifts.dat and utility_gifts.dat for each kind of gift.
To randomly generate gift data files again for any question:
$ cd test/
$ g++ gifts_generator.cpp -o gifts_generator.out
$ ./gifts_generator.out
The randomly generated data files are stored in data/.
To view commitments.log file:
$ cd logs/
$ cat commitments.log
To view gifting.log file:
$ cd logs/
$ cat gifting.log
Documentation for each question is available deployed on gh-pages is available here:
To manually access documentation offline, all the HTML files of the documentation have been included in docs/ directory of every question directory.
Run any web server in this directory and open docs/index.html in any browser to view the documentation for any question.
Class Diagrams are available here:
Automatic documentation generation: Doxygen
Class diagram generation: Visual Paradigm for UML (trial version)