hiteshbhavsar / Parus-Holdings-Assessment

This repository contains code for Parus Holdings Assessment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parus-Holdings-Assessment

This repository contains code for Parus Holdings Assessment

Description of the problem statement

The problem given was that given the list of all items and the given target price. I need to find all the possible combinations of dishes. The input for the data would be taken using a json file. To learn more about the requirements click the link given here.

Input format to be followed

Sample input data

Target price, $15.05

mixed fruit,$2.15 french fries,$2.75 side salad,$3.35 hot wings,$3.55 mozzarella sticks,$4.20 sampler plate,$5.80

{ "Target Price":15.05, "items":[ { "Name":"Mixed Fruit", "Price":2.15 }, { "Name":"french Fries", "Price":2.75 }, { "Name":"side salad", "Price":3.35 }, { "Name":"Hot Wings", "Price":3.55 }, { "Name":"mozzorella sticks", "Price":4.20 }, { "Name":"Sampler plate", "Price":5.80 } ] }

Steps for execution of program through command line parameters using command prompt

  1. Unzip the folder of code (Provided you have downloaded the code in zip format)
  2. Open Command Prompt and change the directory to the current directory using cd current_directory command
    1. Here current_directory means the place where the code is saved
    2. For Example cd "F:\Python Projects\Parus Holdings"
  3. Run the command python project.py file_name
  4. The above code can be written in two formats.
    1. By directly mentioning the file in the same directory to read from. For Example python project.py input.json
    2. By directly mentioning the file path to read from For Example python project.py "F:\Python Projects\Parus Holdings\input.json"
  5. If its getting difficult to understand the steps mentioned above then kindly download the file from the link(https://github.com/hiteshbhavsar/Parus-Holdings-Assessment/blob/main/Steps%20to%20follow%20to%20run%20the%20code.docx)

About

This repository contains code for Parus Holdings Assessment


Languages

Language:Python 100.0%