Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Reply
Class Project Help! - Multiplication Table - 2D Arrays w/Nested Loops
Ryan Krenz
12 years ago
5.2k
Reply
Hi Everyone.
I am assigned to develop a multiplication table using 2D Arrays and Nested loops. The teacher gave us a starting form/etc, but I just dont know where to start! 2 dimensional arrays really threw me for a loop (no pun intended). Can anyone help get me started?
I have attached the startup form, etc. Here are the class requirements:
A two dimensional array has been declared in the program as: int [ , ] intTable = new int[9,9]; // 9 x 9 table
Students are to develop the method that loads the multiplication table into the array
using nested loops.
Use intTable.GetLength(0) to go down the table and intTable.GetLength(1) to go across.
Students are to develop the method that displays the array after it has been loaded with the multiplication table
using nested loops.
Students are to develop the method that searches the array for all occurrences of the number entered as the search criteria in the textbox. Again,
use nested loops.
How shall I start this one?
Attachment:
cs12c.zip
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Need to cut multiple strings from between 2 others in a textbox
Connection Pooling