Suppose we are in the business of selling bouquets of flowers for event planners. We offer the following six variety to our customers: white rose, red rose, daisy, tulip, lily, and jasmine. We will record a customer's order as an array of six integer values, representing the number of bouquets of each kind of flower. Write a static method intialOrder that takes a total order and the next order and returns an array that represents the initial order. For example, if totalOrder contains 13, 12, 10, 11, 20, and 5, and secondOrder contains 8, 10, 5, 9, 13, and 3, then the method should return an array containing 5, 2, 5, 2, 7, and 2.
Get Free Quote!
283 Experts Online