ppl-assignment-sudeeptd created by GitHub Classroom PPL Assignment - IIT2015017- SUDEEPT DWIVEDI
The repository contains two folders q1 and q2 each of which contains the Source Codes, Class Diagram and the Documentations. The codes are written in cpp.
EACH FOLDER HAS ITS OWN how_to_build.txt. PLEASE CHECK THERE FOR MORE DETAILS.
GETTING STARTED FOR ques 1 and 2 The Project was built in: BOSS GNU/Linux 6 (anoop) 64-bit The Project was built using: Sublime Text 3. The Documentation was made using Doxygen and Latex. The class Diagrams were made using StarUML.
FOR ques 3 to 10
The Project was built in: BOSS GNU/Linux 6 (anoop) 64-bit
The Project was built using: Eclipse.
Java : javac 1.8.0_121
Build System : Apache Ant(TM) version 1.9.4
The Documentation was made using Javadoc.
The class Diagrams were made using Visual Paradigm .
PREREQUISITES
g++ Compiler.
BUILDING AND RUNNING
QUESTION 1
Open the Folder q1
Build the code using the following command (random input utility is included in the library itself):
g++ q1.cpp girl_desperate.cpp boy_geek.cpp boy_generous.cpp boy_miser.cpp girl_choosy.cpp girl_normal.cpp additional_functions.cpp
And then give the command:
./a.out
This will print the relationships in the console and a log.txt file will be generated.
QUESTION 2
Open the Folder q2
Build the code using the following command (random input utility is included in the library itself):
g++ q2.cpp girl_desperate.cpp boy_geek.cpp boy_generous.cpp boy_miser.cpp girl_choosy.cpp girl_normal.cpp gift_utility.cpp gift_luxury.cpp gift_essential.cpp additional_functions.cpp additional_functions_2.cpp couple.cpp
And then give the command:
./a.out
In this, the value k is also randomly generated.
This will print the gift exchanges , k happiest couples, k most compatible couples in the console and a log.txt file is created.