========
Lab
========

------------------
Array Lab Part 1
------------------

* Requirements

   - Create an array type whose index is days of the week and each component is a number
   - Create two objects of the array type, one of which is constant
   - Perform the following operations

      + Copy the constant object to the non-constant object
      + Print the contents of the non-constant object
      + Use an array aggregate to initialize the non-constant object
      + For each component of the array, print the array index and the value
      + Move part ("source") of the constant object to part of the non-constant object ("destination")
      + Clear the rest of the non-constant object 
      + Print the contents of the non-constant object

* Hints

   - When you want to combine multiple strings (which are arrays!) use the concatenation operator (`&`)
   - Slices are how you access part of an array
   - Use aggregates (either named or positional) to initialize data

------------------
Array Lab Part 2
------------------

* Requirements

   - Create a work schedule for a store

      - Three workers for weekdays and three workers for weekends
      - Store is closed on Wednesdays

   - For each day of the week, you need an array of three strings containing names of workers for that day
   - Initialize the array and then print it hierarchically

* Hints

   - Strings must be the same size, so create a subtype for the names
   - Names should be same length - use blank spaces for padding

-----------------------------------
Array Lab Solution - Declarations
-----------------------------------

.. container:: source_include 050_array_types/lab/array_types/answer/main.adb :start-after:--Declarations :end-before:--Declarations :code:Ada :number-lines:1

-------------------------------------
Array Lab Solution - Implementation
-------------------------------------

.. container:: source_include 050_array_types/lab/array_types/answer/main.adb :start-after:--Implementation :end-before:--Implementation :code:Ada :number-lines:15
