• Stars
    star
    1
  • Language
    PHP
  • Created almost 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Make a solution in PHP that solves the following problem. A company sells hundreds of products on-line and people place orders from all over the world, just like eBay. Each item has a different weight and price. And each order can be a combination of different number of items. Now each of these orders are to be put into different packages and sent to the courier company for delivery. But there are certain rules while splitting items into packages, they are as below: 1. If the cost of all the items in an order is more than $250, split those items into multiple packages, otherwise one package would be enough. 2. If the items in the same order are split into multiple packages, then the weight of the packages should be equally distributed over the packages to save courier charges. 3. While splitting, NO PACKAGE can have a total price above $250 Create a page (You may want to use JQuery/Angular, HTML5, bootstrap) which has the following: 1. A simple vertical list of items (in the format Name - price - weight), with a check box next to item 2. A button saying "Place order" When the user clicks on "Place order", the selected items should be submitted to the same page without refreshing the page and the above splitting rules should be applied to divide this particular order into multiple packages, and display the output result on the same page.