I need help write a program using Visual C# 2008 the requirements are listed below:
Two Dimensional Array Class:
Create a two-dimensional array class of characters called Array2d . Your Array2d should have functions that do the following:
initialize the contents of the array by setting all values to '.' (constructor)
return the value of any individual cell (char getValue(int, int); the parameters are the cell coordinates)
input a value into an individual cell ( void setValue(int, int, char); the parameters are the cell coordinates and the value to be input into the cell)
output the contents of each cell in the array in order (void display()
copies one 2-d array to another (void copy(Array2d)
reset all the values of the array to '.' (void reset().
Main Program:
Implement a simple program to demonstrate how your class works and do the following:
Declare two two-dimentional arrays
Create a menu that allows the user to do any of the following (you must use a case (switch) statement for this:
output the contents of the arrays - let the user decide which one
read in cell coordinates from the file that I will give you
read in cell coordinates from the keyboard
enter x and y cell coordinates and return the value in the cell.
enter x and y cell coordinates and enter a value to put in the cell
copy one array to the other
Other Specifications:
Create a Directory call ArrayADT to hold your files for this assignment
The class should be in a separate file called Array2d.cs.
The main program should be in a file called main.cs .
Dimensions such as the size of the array should be declared as constants
Put your name and a short description of the project or class at the top of each file.
Zip the whole project and turn in the zip file.
You may write a console application or a windows application
Can somebody please help?
Two Dimensional Array Class:
Create a two-dimensional array class of characters called Array2d . Your Array2d should have functions that do the following:
initialize the contents of the array by setting all values to '.' (constructor)
return the value of any individual cell (char getValue(int, int); the parameters are the cell coordinates)
input a value into an individual cell ( void setValue(int, int, char); the parameters are the cell coordinates and the value to be input into the cell)
output the contents of each cell in the array in order (void display()
copies one 2-d array to another (void copy(Array2d)
reset all the values of the array to '.' (void reset().
Main Program:
Implement a simple program to demonstrate how your class works and do the following:
Declare two two-dimentional arrays
Create a menu that allows the user to do any of the following (you must use a case (switch) statement for this:
output the contents of the arrays - let the user decide which one
read in cell coordinates from the file that I will give you
read in cell coordinates from the keyboard
enter x and y cell coordinates and return the value in the cell.
enter x and y cell coordinates and enter a value to put in the cell
copy one array to the other
Other Specifications:
Create a Directory call ArrayADT to hold your files for this assignment
The class should be in a separate file called Array2d.cs.
The main program should be in a file called main.cs .
Dimensions such as the size of the array should be declared as constants
Put your name and a short description of the project or class at the top of each file.
Zip the whole project and turn in the zip file.
You may write a console application or a windows application
Can somebody please help?