1
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: December 1, 2010 before the class
Project: consecutive four equal numbers
CSCI 1301 Introduction to Programming Principles
Armstrong Atlantic State University
Problem Description:
Write the following function that tests whether a two
dimensional list has four consecutive numbers of the same
value, either horizontally, vertically, or diagonally.
public static boolean isConsecutiveFour(int[][] values)
Write a test program that prompts the user to enter the
number of rows and columns of a twodimensional list and
then the values in the list and displays True if the list
Analysis:
(Describe the problem including input and output in your own words.)
Design:
(Describe the major steps for solving the problem.)
2
Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
Submit to LiveLab
Testing: (Describe how you test this program)
Submit the following items:
1. Print this Word file and Submit to me before the class on the due day
3
Solution Code: