import java.util.Scanner; /** class Orders processes online orders */ public class Orders { /** main method calls methods to read in data and calculate price */ public static void main(String[] args) { System.out.print("How many orders are we processing?"); Scanner in = new Scanner(System.in); int n = in.nextInt(); // allocate our arrays based on n int[] qty = new int[n]; double[] price = new double[n]; double[] totalPrice = new double[n]; // 2 method calls readData(qty, price, in); displayArrays(qty, price); //calculateTotals(qty, price, totalPrice); //displayArrays(qty, totalPrice); } /** reads in 2 arrays. * @param arr1 int array for first column of data * @param arr2 double array for second column * */ public static void readData(int[] arr1, double[] arr2, Scanner input) { for (int i=0; i