I am looking for an solution in which user inputs below details n I will get following output as Table-2.
I have 4 parts name - A,B,C,D with priority as 1,2,4,3.
Rule is that if we load part name - A on a machine then it can maximum produce 50 qty, after that compulsory batch needs to be changed, because Tools/ Die for Part Name - A needs to be reconditioned.
So we will switch over to next priority i.e. part name - B, again it will produce 50 qty after that it will be take for reconditioned.
Till that time Part Name - A tool will be ready, so will manufacture part name - A.
Refer below table 2 for more details.
INPUT by user ( TABLE - 1 )
Part Name Total Order Qty Priority Maxi. Batch Qty.
A 100 1 50
B 150 2 50
C 250 4 50
D 175 3 50
OUTPUT ... Table - 2
Priority Part Name Produced Total Manufactured Total Balance
1 A 50 50 50
2 B 50 50 100
1 A 50 100 0
2 B 50 100 50
3 D 50 50 125
2 B 50 150 0
3 D 50 100 75
4 C 50 50 200
3 D 50 150 25
4 C 50 100 150
3 D 25 175 0
4 C 50 150 100
& above cycle continues.
Bookmarks