Reference no: EM132292267
Program requirements:
• Name your project MatrixOperations, or something similar.
• Generate two matrices. Allow the user to determine the dimensions (i.e. m and n) for each matrix using NumericUpDown controls.
• Populate both matrices with random Integers. Allow the user to set the min and the max of these Integer values
• Display both matrices in either a ListBox or a Multiline, ReadOnly TextBox
• HINT: If you choose a TextBox, it will facilitate writing the information contained in the Text property of this TextBox to file.
• Perform and display the results of the following operations on the two matrices:
• Addition
• Scalar multiplication (allow user to set value of the scalar)
• Transposition
• Matrix multiplication
• Use RadioButtons, within a GroupBox, to allow user to decide which operation to perform.
• If no operation is selected, display an error message
• Recall that two matrices can be added only if their dimensions are identical; therefore, before adding, verify that the two matrices can be
added. If invalid addition is attempted, display error message.
• Recall that matrix multiplication can be performed only when the number of columns (n) of the left matrix is equivalent to the number of rows (m) of the right matrix. Therefore, before multiplying, you must verify that this condition is fulfilled. If invalid multiplication is attempted, display error message.
• Allow the user to click a button to write to file the matrices and the results of the operation performed
• Place the code in the Try block of a Try - Catch statement
• Allow the user to click a button to read, and then display on the form, the current contents of the file.
• Place the code in the Try block of a Try - Catch statement.
• Import the UtilitiesModule from you Lab 9 program. You now have access to the GetValidlnteger( ) function and also the random object instantiated with program scope.
Attachment:- requirements.rar