littlejilly
Board Regular
- Joined
- Sep 8, 2011
- Messages
- 168
I have a few questions.
I have 7 products (j = 0 to 6) and I have already declared the ProductPrice for each product.
I also have declared RelativeES(j,0) (an integer)
I need to write a code for TotalCost (j) but only taking in those products where RelativeES(j,0) = 0 or 1.
I then need to caclulate the PriceRatio for each product (j) where RelativeES(j,0) = 0 or 1 where PriceRatio(j) = ProductPrice(j)/TotalCost(all j where RelativeES(j,0) = 0,1))
Thanks
I have 7 products (j = 0 to 6) and I have already declared the ProductPrice for each product.
I also have declared RelativeES(j,0) (an integer)
I need to write a code for TotalCost (j) but only taking in those products where RelativeES(j,0) = 0 or 1.
I then need to caclulate the PriceRatio for each product (j) where RelativeES(j,0) = 0 or 1 where PriceRatio(j) = ProductPrice(j)/TotalCost(all j where RelativeES(j,0) = 0,1))
Thanks