Define a Rectangle class that provides getLength and getWidth methods. Using thefindMax routines in Figure 1.18, write a main that creates an array of Rectangleand finds the largest Rectangle first on the basis of area, and then on the basis ofperimeter.
section 11 part 14 decision science At the main storage facility of a large manufacturing company trucks arrive at rate of 40 per hour. There are 3 clerks to the process paper works at the rate 20 per hour before the trucks could be unloaded. The clerks are paid at $10.00 per hour. Also, company pays $20 per hour to the trucking for their wait time during paper processing. Facility is open 8 hours per day. What is the optimum number of clerks S = 3 ; λ = 40 per hour ; μ = 20 customers served per hour Current waiting cost : 8 hours per day x $20 per hour x 0.888 trucks waiting = $142.08 P0 = 0.130 Lq = 0.173 If added the 4th clerk : 8 hours per day x $20 per hour x 0.173 trucks waiting = $27.68 Cost of waiting if 4th clerk added: $142.08 - $27.68 = $114.40 Reduction in waiting cost: $114.40 – (8 hours x $ 10 per hour cost of additional clerk) = $ 34.40 Net savings: Optimum number of clerks is 4. If you add the 5th one, the cost of additional clerk will exceed the cost of waiting.