Re: How to create a program that will test variables in an array, proceeding by row before proceeding by column, that will increment column if test criteria is not met with, or if variables in rows to be tested are exhausted, until all variables in rows have been tested according to successive testing criteria.
(Nb: this is a continuation of the last subject, but as it seems no one is responding since last monday March 25th I thought it worth trying to post as a new topic)
I have given some thought to the objectives of the following program, and thought it would be best to create a multidimensional array of two columns and three rows, that would hold variables initialisable by an xml document, the details of which need not preoccupy us at this point, the program would then test the array's first row first column's variable, then the second row's first column's variable, and then the third row's first column's variable, at any point where the tests criteria is not met with (ie that first variable is not an even number, that the second variable is not an odd number , that the third variable is not a factor of 3) the program will pass to the Array's next column, but the same sequence of rows, ie row 1 column 2, row 2, column 2, row 3, column 2. If the three criteria are met with then program outputs that fact to the screen, and proceeds to increment the column of the Array to be tested.After the second (and maximum number of columns is reached) column value is incremented to Array[maximum] +1, whereby the program ends.
I realise this program is not well coded sufficiently to compile or run, but hopefully it gives an idea of the way in which I wish to solve the problem of putting seperate tests to variables in an array by row rather than by column, and skipping the entire column of rows should test's criteria not be met by the tested variables.
I have drawn another flow chart to describe the layout of the program, which may give a better idea of what I am aiming to create in code, and have a photo of it, if you would be able to give me an E-mail address by which I could send it, seeing as I cannot send photos or appropriate notepad or word documents of such a chart by this gui.
Thank you for reading.
Yours Mary.