Question: This is for programming one, extra credit, with the java language. Below are two separate programs that need to be created from scratch. They each
Extra Credit Writing Programs that Review CSC 204 Concepts You can receive lab bonus points by attempting the two programs which follow. They're a little challenging, but fun! They both review a lot of the different concepts you learned in CSC 204. Let me know if I can help you in any way in completing them. Program #1: Checking for Magic Squares Write a program that reads in data for a 3 by 3 matrix of integers from an external file, and than checks that matrix to see if it is a magic square. A magic square is a square matrix (a matrix with an even number of rows and columns) where the sum of the rows, columns, and diagonals of are all equal. For example, the following is a magic square since all the rows, columns, and diagonals sum up to 15: 6 8 3 4 5 2 Sample Program Input (from infile.dat) 6 2 Sample Program Output (to screen) Yes, It' s A Magic Square
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
