@@ -0,0 +1,1372 @@
+package com.samovich.cop2800.chapter8;%0A%0Aimport javax.swing.JOptionPane;%0A%0A/**%0A * Filename ParallelArray.java%0A * Created by Valery Samovich%0A * Written on 6/21/2016%0A */%0Apublic class ParallelArray %7B%0A    public static void main(String%5B%5D args) %7B%0A        // declare fields%0A        final int NUMBER_OF_ITEMS = 10;%0A        int%5B%5D validValues = %7B101, 108, 201, 213, 266, 304, 311, 409, 411, 412%7D;%0A        double%5B%5D prices = %7B0.29, 1.23, 3.50, 0.69, 6.79, 3.19, 0.99, 0.89, 1.26, 8.00%7D;%0A        String strItem;%0A        int itemOrdered;%0A        double itemPrice = 0.0;%0A        boolean validItem = false;%0A%0A        // accept user input%0A        strItem = JOptionPane.showInputDialog(%0A                null,%0A                %22Enter the item number you want to order%22);%0A        itemOrdered = Integer.parseInt(strItem);%0A%0A        // process user input%0A        for (int x = 0; x %3C NUMBER_OF_ITEMS; x++) %7B%0A            if (itemOrdered == validValues%5Bx%5D) %7B%0A                validItem = true;%0A                itemPrice = prices%5Bx%5D;%0A            %7D%0A        %7D%0A%0A        if (validItem) %7B%0A            JOptionPane.showMessageDialog(%0A                    null,%0A                    %22The price for item %22 + itemOrdered + %22 is $%22 + itemPrice);%0A        %7D else %7B%0A            JOptionPane.showMessageDialog(%0A                    null,%0A                    %22Sorry - invalid item entered%22%0A            );%0A        %7D%0A    %7D%0A%7D%0A

Add parallel array