Find Jobs
Hire Freelancers

ADT matrix

$25-30 USD

已完成
已发布超过 22 年前

$25-30 USD

货到付款
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
项目 ID: 2829240

关于此项目

12提案
远程项目
活跃23 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$25.50 USD 在14天之内
4.8 (34条评论)
3.8
3.8
12威客以平均价$17 USD来参与此工作竞价
用户头像
See private message.
$8.50 USD 在14天之内
4.9 (19条评论)
4.8
4.8
用户头像
See private message.
$19.55 USD 在14天之内
4.6 (60条评论)
4.5
4.5
用户头像
See private message.
$12.75 USD 在14天之内
4.9 (69条评论)
4.2
4.2
用户头像
See private message.
$12.75 USD 在14天之内
5.0 (26条评论)
3.8
3.8
用户头像
See private message.
$17 USD 在14天之内
4.8 (16条评论)
3.1
3.1
用户头像
See private message.
$17 USD 在14天之内
5.0 (7条评论)
2.6
2.6
用户头像
See private message.
$21.25 USD 在14天之内
4.8 (6条评论)
1.3
1.3
用户头像
See private message.
$12.75 USD 在14天之内
0.0 (1条评论)
0.0
0.0
用户头像
See private message.
$21.25 USD 在14天之内
0.0 (3条评论)
0.2
0.2
用户头像
See private message.
$21.25 USD 在14天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$8.50 USD 在14天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
4.8
3
会员自10月 12, 2001起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。