The Chocolate Delights Candy Company needs to add the following functionality to its cash register: When a customer is checking out, the cash register needs to store the required data pertaining to each item the customer is buying. This data includes the item name, the price per pound, and the number of pounds of that item being purchased. This should be stored in three (3) arrays (one (1) for the item name, one (1) for the price per pound, and one (1) for the number of pounds being purchased) with corresponding index values. For example, index value 3, when applied to the “itemName” array, would give as the name of the third item that the customer is buying. That same index value of 3, when applied to the “ pricePerPound” array, would give us the price per pound of that same third item that the customer is buying. When that last item in the purchase has been saved to the array, an itemized receipt is printed which shows the relevant data (name, price, and amount purchased) of each item, the subtotal price for each item (which is calculated as price per pound times the number of pounds), and the grand total purchase amount of all items. Use Visual Logic to create the data flow diagrams needed in order to develop the design documents for an interactive event-driven program to solve the above scenario that includes at least:

Three (3) arrays
One (1) loop
One (1) and / or conditional statement that covers decision making to include true and false parts of an if statement.

To add the required functionality to the cash register, you can follow these steps using Visual Logic:

1. Start by creating three arrays: "itemName", "pricePerPound", and "numberOfPounds". Ensure that all three arrays have the same length, as each index will correspond to the item being purchased.

2. Use a loop to allow the cashier to input the item details for each item the customer is buying. The loop will run until all items have been entered.

3. Within the loop, prompt the cashier to enter the item name, price per pound, and number of pounds for each item. Store this data in the respective arrays using the loop counter as the index value.

4. After the loop completes, calculate the subtotal price for each item by multiplying the price per pound by the number of pounds for each item. Store the calculated values in a new array, let's call it "subtotal".

5. Use another loop to iterate through the arrays and print the itemized receipt. Within this loop, retrieve the item name, price per pound, number of pounds, and subtotal for each item using the loop counter as the index value.

6. Display the relevant data for each item (name, price, and amount purchased), as well as the subtotal price for each item.

7. Calculate the grand total purchase amount by summing all the subtotal values from the "subtotal" array.

8. Finally, print the grand total purchase amount.

To implement the above steps, you would need to use Visual Logic software or a similar flowcharting tool. Use the provided instructions as a guide to create the necessary flowcharts using the appropriate symbols, such as loops, conditional statements, and arrays.