ADT Matrix

Closed Posted Oct 11, 2002 Paid on delivery
Closed Paid on delivery

Write and test ADT Matrix. use the following class definition. const int MAX_ROWS=10; const int MAX_COLS=10; class MATRIXType { public: MatrixType(); Void MakeEmpty(); void SetSize(int rowsize, int colsize); void storeItem(int item, int row, int colsize); void add(MatrixType otheroperand, MatrixType& result); Void Mult(MatrixType otheroperand, MatrixType& result); Void print(std::ofstream& outfile); bool AddsubCompatible(MatrixType otherOperand); bool Multcompatible(MatrixType otherOperand); private: int values[MAX_ROWS][MAX_COLS]; int numRows; int numCols; ; Deliverables: Before you start looking at how to implement this class, you must determine the pre and post conditions for each opertation. Write a menu driven testing program to test the MatrixType. the menu should contain the following options... GetNewMatrix number of rows and number of columns are on the nextline number of column values on the next number of rows lines AddMatrices add first and second, leaving the result in the third SubMatrices Subtract second from first, leaving the result in the third Multiply matrices Multiply first and second, leaving the result in the third Print Matrix Print the matrix one row per line on dataout Quit These are the processing notes! 1. is a number between 0 and 9. This value is used as an index into an array of matrixtype. [url removed, login to view] main function must include a switch statement in which the case expression is a user defined enumeration type. This means that the command is recognized and its enumeration equivalent is sent back to be used in the case statement. [url removed, login to view] driver must ensure the precondition of the member functions of matrixType. Must be able to print an error message if a precodition is violated. 4. echo print each comman on Dataout. Complete and fully- functional working program(s) in executable form as well as complete source code of all work done.

## Deliverables

Deliverables: Before you start looking at how to implement this class, you must determine the pre and post conditions for each opertation. Write a menu driven testing program to test the MatrixType. the menu should contain the following options... GetNewMatrix number of rows and number of columns are on the nextline number of column values on the next number of rows lines AddMatrices add first and second, leaving the result in the third SubMatrices Subtract second from first, leaving the result in the third Multiply matrices Multiply first and second, leaving the result in the third Print Matrix Print the matrix one row per line on dataout Quit These are the processing notes! 1. is a number between 0 and 9. This value is used as an index into an array of matrixtype. [url removed, login to view] main function must include a switch statement in which the case expression is a user defined enumeration type. This means that the command is recognized and its enumeration equivalent is sent back to be used in the case statement. [url removed, login to view] driver must ensure the precondition of the member functions of matrixType. Must be able to print an error message if a precodition is violated. 4. echo print each comman on Dataout. Complete and fully- functional working program(s) in executable form as well as complete source code of all work done.

## Platform

Windows 2000

C Programming Engineering Microsoft MySQL PHP Software Architecture Software Testing Windows Desktop

Project ID: #2875852

About the project

10 proposals Remote project Active Oct 23, 2002

10 freelancers are bidding on average $13 for this job

sanatanvw

See private message.

$17 USD in 14 days
(72 Reviews)
5.5
leepwo

See private message.

$17 USD in 14 days
(40 Reviews)
4.7
rozarus

See private message.

$17 USD in 14 days
(53 Reviews)
3.3
compwizvw

See private message.

$17 USD in 14 days
(8 Reviews)
3.2
coreinsidei

See private message.

$6.8 USD in 14 days
(16 Reviews)
2.9
vw547142vw

See private message.

$10.63 USD in 14 days
(18 Reviews)
2.4
vw539561vw

See private message.

$11.05 USD in 14 days
(5 Reviews)
1.1
alirazavw

See private message.

$8.07 USD in 14 days
(7 Reviews)
1.3
lexell

See private message.

$12.75 USD in 14 days
(0 Reviews)
0.0
robertberet

See private message.

$12.75 USD in 14 days
(1 Review)
0.0