Coder Social home page Coder Social logo

ppl-assignment-chinmoy159's Introduction

ppl-assignment-chinmoy159

IPPL430C Assignment

by --
Chinmoy Das
IIT2015028

This is the PPL Assignment, by Prof. Rahul Kala.
This repository contains the questions 1 - 10 of the assignment, along with the randomly generated data for input.

Programming done in JAVA

Operating System Used

Windows 10 Pro (x64)

Version of JAVA used

JAVA 8 (jdk 1.8 Update 92) 64 bit

Developer Tools used

Notepad++, javadoc, BlueJ

Documentation

All the documentation files are present in the folder doc.
Open the file
package-summary.html
This is the index file of the documentation of all the files in the assignment.
I'm providing a simple shell script file to ease the task of compilation and generation of random code.
tested on Zorin OS 12 Core (Ubuntu Based) (x64)
Use the command
sh compiler_java.sh
on the terminal.
After this you just need to change the directory using
cd bytecodes/
and type
java q$_assign
to execute whichever question you want to.

Procedure (using command line on Linux Terminal), in case you do not wish to use the shell script !

  1. Keep all the Java source files as well as the input files in the same directory.
  2. first of all we need to generate the random input for the programs
  3. take all the files from the Input folder and put them where the java programs are kept.
  4. run the command
    javac *.java
    to compile all the files.
  5. If you wish to generate random input once again, type in
    java rand_data_boys
    java rand_data_girls
    java rand_gift_data
  6. now, run the program of whichever question you need to see the result.
  7. run the command
    java q$_assign
    where, $ = question number.
  8. all the inputs and output files are given in the folder Input & Output respectively.
  9. All the outputs generated will be in the same folder

I've used simple text files to read the input from, as well as storing the output to.
Output of

  1. Question 1 is stored in Couples.txt
  2. Question 2 is stored in Gift_log.txt
  3. Question 4 is stored in Broken_up.txt and New_couples.txt
  4. Question 5 is stored in Couples_Q5.txt
  5. Question 6 is stored in Q6_Breakups.txt
  6. Question 7 is stored in Q7_analysis.txt
  7. Question 10 is stored in Q10_Random_Ans.txt

Edits (after first submission)

  1. Question 2 has been modified to NOT to take any kind of inputs from the terminal
  2. Codes for Question 4, Question 5, Question 6, Question 7 have been added to the repository.
  3. Question 10, which demands the creation of a data structure, has been added to the repository.
  4. Also, added all the auxilary classes needed for my programs.

Output

Pre-generated output files are present in the folder Output

Input

Randomly generated input files are given in folder Input as text files.

ppl-assignment-chinmoy159's People

Contributors

chinmoy159 avatar

Watchers

James Cloos avatar Vishnu Ks avatar Rahul Kala avatar  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.