Gautam Parmar

Gautam Parmar

  • NA
  • 867
  • 22.1k

Update nested layer using loop #Challenge

Jan 25 2018 1:00 AM
There is Master Part 1 and to create it two raw materials are required
M1 - 500 Rs.
M2 - 750 Rs.
 
If we change the price of raw materials of M1 500 Rs to 600 Rs. so the cost of master part 1 is now 1350.
 
And in a hierarchy, as you can see to create Master part 2 as a raw material used as master part 1 - so that price of master part 2 will also get affected.
 
and to create Master part 6 as raw material Master part 2 is used to it will also get affect and it is so on an nth number it is not defined how much deep it could be.
It suppose to update all price of raw material which is in hierarchy
 

Answers (2)