package lab4; import java.util.Scanner; public class Lab4 { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double vector1[] = new double[3]; double vector2[] = new double[3]; System.out.print("Enter three digits for vector one: "); vector1[0] = keyboard.nextDouble(); vector1[1] = keyboard.nextDouble(); vector1[2] = keyboard.nextDouble(); System.out.print("Enter three digits for vector two: "); vector2[0] = keyboard.nextDouble(); vector2[1] = keyboard.nextDouble(); vector2[2] = keyboard.nextDouble(); System.out.println("Using ArrayInstance class"); /* Step 1: Create one ArrayInstance object using vector1, name it tempvec1 * */ /* Step 2: Now create one more ArrayInstance variable using tempvec1 object * created above. Name it vec1. This will invoke the copy constructor you wrote in ArrayInstance. */ /* Step 3: Create one more ArrayInstance object using vector2, name it vec2. * */ /*Step 4: Print out the dot product of the two vectors * */ /*Step 5: get a copy the vector of one of the ArrayInstance objects * */ /*Step 6: Print out the array got above. * */ /*Step 7: Print out the dot product of the two vectors using ArrayStatic * */ /*Step 8: get a copy the vector of one of the above arrays * using the copyArray function in ArrayStatic class. * */ /*Step 9: Print out the array got above. * */ } }