package lab5; import java.util.Scanner; public class Lab5 { /** * @param args */ public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double vector[] = new double[3]; System.out.print("Enter three digits for vector: "); vector[0] = keyboard.nextDouble(); vector[1] = keyboard.nextDouble(); vector[2] = keyboard.nextDouble(); System.out.println("Using MyVector class"); /* After implementing the MyVector class from step 3 ** insert code as indicated below to test your class **/ // 3a. Create a MyVector object from the array/vector above // 3b. Calculate and print the magnitude of the MyVector object // 3c. Use the getArray method to access the vector of the MyVector object // 3d. Print out the copy System.out.println("Using VectorMath class"); /** After implementing the VectorMath class from step 4 ** insert code as indicated below to test your class **/ // 4a. Calculate and print the magnitude of the array/vector above // using the static magnitude method of the VectorMath class } }