Find Jobs
Hire Freelancers

write a martix

$10-30 USD

진행 중
게시됨 7년 이상 전

$10-30 USD

제출할때 지불됩니다
Many mathematical problems require the addition, subtraction, and multiplication of two matrices. Write an ADT Matrix. You may use the following class definition. const int MAX_ROWS = 10; const int MAX_COLS = 10; class MatrixType { public: MatrixType(); void MakeEmpty(); void SetSize(int rowsSize, int colSize); void StoreItem(int item, int row, int col); void Add(MatrixType otherOperand, MatrixType& result); void Sub(MatrixType otherOperand, MatrixType& result); void Mult(MatrixType otherOperand, MatrixType& result); void Print(ofstream& outfile); bool AddSubCompatible(MatrixType otherOperand); bool MultCompatible(MatrixType otherOperand); private: int values[MAX_ROWS][MAX_COLS]; int numRows; int numCols; }; Before you start looking at how to implement this class, you must determine and document the appropriate preconditions and postconditions for each operation. Note that the class provides the member functions to allow the client to determine if the binary matrix operations are possible. Before this class can become a permanent part of your program library, it must be thoroughly tested. Write a menu driven testing program to test your MatrixType. Test Driver The test driver should handle the following options. (See processing notes for definition of <matrix>). GetNewMatrix <matrix> Number of rows and number of columns are on the next line. Values for each row and column AddMatrices <matrix> <matrix> <matrix> Add first and second, leaving the result in the third SubMatrices <matrix> <matrix> <matrix> Subtract second from first, leaving the result in the third MultiplyMatrices <matrix> <matrix> <matrix> Multiply first and second, leaving the result in the third PrintMatrix <matrix> Print the matrix one row per line on DataOut Quit Processing Notes 1. <matrix> is a number between 0 and 9. This value is used as an index into an array of MatrixType. 2. The main function must include a Switch statement where 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. 3. The driver must ensure the preconditions of the member functions of MatrixType. Throw an exception if an error occurs and continue processing. Deliverables • Your MatrixType class • Your test driver (Similar to the fraction example) • Your test plan and input to the test driver (See page 122 for an example) • The output file from the test driver • A copy of the screen from the run of the test driver
프로젝트 ID: 12758614

프로젝트 정보

2 제안서
원격근무 프로젝트
활동 중 7년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
2 이 프로젝트에 프리랜서들의 평균 입찰은 $70 USD입니다.
사용자 아바타
I m software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you
$100 USD 1일에
5.0 (36 건의 리뷰)
5.5
5.5
사용자 아바타
hello, place your confidence in my C++ / Linear Algebra knowledge and experience. let's check your assignment and discuss a solution. greets, srdjan
$40 USD 3일에
5.0 (15 건의 리뷰)
4.5
4.5

고객에 대한 정보

국기 (UNITED STATES)
San Jose, United States
5.0
4
결제 수단 확인
1월 11, 2017부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.