Find Jobs
Hire Freelancers

ADT matrix

$25-30 USD

Completed
Posted over 22 years ago

$25-30 USD

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. [login to view URL] 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. [login to view URL] 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. ## Deadline information need assignment ASAP! Thanks
Project ID: 2829240

About the project

12 proposals
Remote project
Active 23 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$25.50 USD in 14 days
4.8 (34 reviews)
3.8
3.8
12 freelancers are bidding on average $17 USD for this job
User Avatar
See private message.
$8.50 USD in 14 days
4.9 (19 reviews)
4.8
4.8
User Avatar
See private message.
$19.55 USD in 14 days
4.6 (60 reviews)
4.5
4.5
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (69 reviews)
4.2
4.2
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (26 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 14 days
4.8 (16 reviews)
3.1
3.1
User Avatar
See private message.
$17 USD in 14 days
5.0 (7 reviews)
2.6
2.6
User Avatar
See private message.
$21.25 USD in 14 days
4.8 (6 reviews)
1.3
1.3
User Avatar
See private message.
$12.75 USD in 14 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$21.25 USD in 14 days
0.0 (3 reviews)
0.2
0.2
User Avatar
See private message.
$21.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.8
3
Member since Oct 12, 2001

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.