12. Array Exercises 1

Learning to use arrays, basic finger exercises.

Make an array 1

  1. Return the integer array {2,5,10,20}.

  2. Return the String array {"Fast","Fish","Frying","Food"}.


Make an array 2

  • Make an array with n zeros.

  • Fill it with the numbers 0 through (n-1).

      fill_a(6) == {0,1,2,3,4,5}
    

Make an array 3

  • Make an array with 2n zeros.

  • Fill it with integers, counting up from 21.

      fill_b(3) == {21,22,23,24,25,26}
    
Last modified August 18, 2023: 2022-2023 End State (7352e87)