5 CLS
10 PRINT"         EOQ INVENTORY MODEL "
20 PRINT
30 PRINT"IN INVENTORY THEORY A REORDER COST IS A FIXED COST ASSESSED
35 PRINT"EACH TIME AN ORDER FOR AN ITEM IS PLACED, NO MATTER WHAT
40 PRINT"THE ORDER QUANTITY IS.
50 PRINT"A HOLDING COST IS A COST DUE TO HOLDING INVENTORY,E.G.INTEREST.
60 PRINT"A STOCKOUT COST IS DUE TO RUNNING OUT OF AN ITEM.
65 PRINT"IN THIS PROGRAM WE ASSUME THAT THERE WILL BE NO STOCKOUTS.
70 PRINT"IN ADDITION THE ITEMS ARE USED UNIFORMLY THROUGHOUT THE YEAR
75 PRINT"WE CAN TAKE DELIVERY OF A REORDER WHENEVER WE WANT.
80 PRINT "DEMAND IS IN NUMBER OF ITEMS USED PER YEAR.
85 PRINT "REORDER COST IS IN DOLLARS PER REORDER.
90 PRINT "HOLDING COST IS IN DOLLARS PER ITEM PER YEAR.
95 PRINT
99 INPUT "TO BEGIN PRESS ENTER";Z9
200 CLS
210 INPUT "DEMAND             ";D
220 INPUT "REORDER COST       ";CR
230 INPUT "HOLDING COST       ";CH
240 Q=SQR(2*CR*D/CH)
250 Q1 = INT(Q+.5)
300 PRINT
320 PRINT "TO MINIMIZE TOTAL COSTS OF INVENTORY :"
330 PRINT"         REORDER ";Q1;" ITEMS AT A TIME"
340 PRINT
350 PRINT"THIS MEANS ORDER APPROXIMATELY";INT(D/Q1+.5);" TIMES PER YEAR
360 PRINT"OR ABOUT EVERY ";INT(365/INT(D/Q1+.5)+.5);" DAYS."
