Question: please use eclipse and follow the instructions thank you CPS 2231 Computer Organization and Programming Program 3 Due Date: As indicated on Blackboard Concepts: Two-dimensional

 please use eclipse and follow the instructions thank you CPS 2231

Computer Organization and Programming Program 3 Due Date: As indicated on Blackboard

Concepts: Two-dimensional arrays and methods Point value: 65 points Write a program

please use eclipse and follow the instructions thank you

CPS 2231 Computer Organization and Programming Program 3 Due Date: As indicated on Blackboard Concepts: Two-dimensional arrays and methods Point value: 65 points Write a program that prompts the user to enter a 4 x 4 matrix of integer values and tests whether it is an Arrowhead Matrix In the mathematical field of linear algebra, an arrowhead matrix is an n x n matrix containing zeros in all entries except for the first row, first column, and main diagonal. In other words, the matrix has the form: 1100 1010 1001 Enter a 4 by 4 matrix by row 1100 1010 1001 1100 1010 100 1 It is an Arrowhead Matrix sample run 2 - Row I contains a zers Enter a 4 by 4 matrix by row 1110 1100 1010 1001 1110 1100 1010 1001 It is not an Arrowhead Matrix Sample run 3-Column 1 contains a zero Enter a 4 by 4 matrix by row Computer Organization and Programming 010 0 1010 1001 It is not an Arrowhead Matrix Enter a 4 by 4 matrix by row II00 1 030 1000 1100 1010 1000 It is not an Arrowhead Matrix Enter a 4 by 4 matrix by row 1 1.0D 1010 1001 1100 1010 1001 It is an Arrowhead Matrix Please note the following requirements and how the assignment will be graded: . The name of the class must be XXxx_Program3 where xXx is your Kean email id (2) points) . I Include a comment at the start of the program with the following (3 points): Your name A description of how your program works o o CPS 2231 Computer Organization and Programming . Include a comment before each methad explaining what the methods does This should not be a one liner that offers little to no information. It needs to be descriptive. (S points) All methods called from the main methods (5 points) . . There will be two methods which will be called from the main method: public static int [1 11 createArray() (15 points) 1. Creates a 4 by 4 two dimensional array of integers 2. Prompts the user for values as shown in the sample run 3. Stores the numbers in the array in the order entered 4. Returns the array to the main method public static boolean isArrowHead(int [10] matrix) (20 points) 1. Returns faise if the array is not an ArrowHead 2. Otherwise, it returns true. public static void printArray(int [10] matrix) (10 points) The program must work correctly for all values (not just the values in the sample output) . Student Name: Points possibleearned Requirement Points Name of class Comment at start of class Comment before each method All methods called from main CreateArray 15 - Creates 4 x 4 array of integers (5 pts) (5 pts) (5 pts) Prompts the user as shown Returns array with values Head - 20 Returns true or false (5 points) Correct for all values (15 points) - 10 printArray - Prints the array as shown Coding style -indentation, naming conventions, etc 65

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!