Method Generate Produce Integer Arrays Random Size 10 20 Members Method Print Print Member Q37105967

  1. The method generate() will produce integer arrays of arandom size between 10 and 20 members.

  1. The method print() will print out the members of aninteger array input.

  1. The method insert() will accept two arrays as inputs. Itwill produce a new array long enough to contain both arrays, andboth input arrays should be inserted into the new array in thefollowing manner: select a random member of the first array, andinsert every member of the second array in before the first array.Thus, output should look like this (with smallerarrays):

Input 1: {1,2,3,4,5,6} Input 2:{10,11,12,13}

Output: {1,2,3,10,11,12,13,4,5,6}

  1. The method shorten() should accept an input array

    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.