designreport8 - Benjamin Jones 02/26/08 Design Report...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Benjamin Jones 02/26/08 Design Report Laboratory 8 I. Get necessary input I.A Open the input text file I.B Get dimensions for matrix one and two I.B.1 Read first line of file: set first number to first matrix's rows, set second number to first matrix's columns I.B.2 Read second line of file: set first number to second matrix's rows, set second number to second matrix's columns I.C Validate matrix dimensions I.C.1 If matrix dimensions are not between 1 and 100 I.C.1.a Then warn user I.C.1.b Exit program I.C.2 If matrix dimensions are not valid for resultant (<rowsOfMatrix1> != <colsOfMatrix2>) I.C.2.a Then warn user I.C.2.b Exit program I.D Set resultant matrix dimensions I.D.1 Rows are equal to rows of first matrix I.D.2 Columns are equal to columns of second matrix I.E Allocate and create matrix one, two, and resultant I.F Initialize each matrix I.G Read matrices from file I.G.1 While columns are less than column dimension for matrix one I.G.1.a While rows are less than row dimension for matrix one I.G.1.a.i Read line and set as matrix one element
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This lab report was uploaded on 04/18/2008 for the course ECEE 120 taught by Professor Carter during the Winter '08 term at University of Cincinnati.

Page1 / 4

designreport8 - Benjamin Jones 02/26/08 Design Report...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online