Find Jobs
Hire Freelancers

ADT Matrix

$15-20 USD

クローズ
投稿日: 21年以上前

$15-20 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. ## 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. [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. ## Platform Windows 2000
プロジェクト ID: 2875852

プロジェクトについて

10個の提案
リモートプロジェクト
アクティブ 22年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に10人のフリーランサーが、平均$13 USDで入札しています
ユーザーアバター
See private message.
$17 USD 14日以内
4.4 (72 レビュー)
5.5
5.5
ユーザーアバター
See private message.
$17 USD 14日以内
4.7 (40 レビュー)
4.7
4.7
ユーザーアバター
See private message.
$17 USD 14日以内
5.0 (53 レビュー)
3.3
3.3
ユーザーアバター
See private message.
$17 USD 14日以内
5.0 (8 レビュー)
3.2
3.2
ユーザーアバター
See private message.
$6.80 USD 14日以内
5.0 (16 レビュー)
2.9
2.9
ユーザーアバター
See private message.
$10.63 USD 14日以内
4.5 (18 レビュー)
2.4
2.4
ユーザーアバター
See private message.
$11.05 USD 14日以内
4.9 (5 レビュー)
1.1
1.1
ユーザーアバター
See private message.
$8.07 USD 14日以内
3.9 (7 レビュー)
1.3
1.3
ユーザーアバター
See private message.
$12.75 USD 14日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
See private message.
$12.75 USD 14日以内
0.0 (1 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
United States
5.0
2
メンバー登録日:3月 7, 2003

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。