Find Jobs
Hire Freelancers

C++ ADT Matrix

$30-100 USD

In Bearbeitung
Veröffentlicht vor mehr als 22 Jahren

$30-100 USD

Bezahlt bei Lieferung
Many mathematical problems require the addition, subtraction, and multiplication of two matrices. Write an ADT Matirx. 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 rowSize, int colSize); void StoreItem(int item, int row, int col); void Add(MatirxType otherOperand, MatrixType& result); void Sub(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; ; Before you start looking at how to implement this class, you must determine 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 you MatrixType. Menu-Driven Testing Interface the menu should contain the following options GetNewMatrix Number of rows and number of columns are on the next line Number of column values on the next number of rows lines AddMatricesAdd first and second, leaving the result in the third SubMatricesSbutract second from first, leaving the result in the third MultiplyMatrices Multiply first and second, leaving the result in the third PrintMatrixPrint the matrix one row per line on DataOut Quit Processing Notes 1). 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 in which the case expression is a user-define denumeration 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 Matrix-Type. Print an error message if a precondition is violated. 4). Echo print each command on DataOut. ## Deliverables Deliverables - a listing of the specification file for class MatrixType with the preconditions and postconditions specified - a listing of the Implementation file for Class MatrixType - a listing of the test driver - an implemented test plan ## Deadline information Due 10/17/01 by 12pm
Projekt-ID: 2829049

Über das Projekt

11 Vorschläge
Remote Projekt
Aktiv vor 23 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
See private message.
$25,50 USD in 14 Tagen
4,8 (35 Bewertungen)
3,8
3,8
11 Freelancer bieten im Durchschnitt $52 USD für diesen Auftrag
Avatar des Nutzers
See private message.
$17 USD in 14 Tagen
5,0 (79 Bewertungen)
5,2
5,2
Avatar des Nutzers
See private message.
$85 USD in 14 Tagen
5,0 (35 Bewertungen)
5,0
5,0
Avatar des Nutzers
See private message.
$42,50 USD in 14 Tagen
4,6 (60 Bewertungen)
4,5
4,5
Avatar des Nutzers
See private message.
$85 USD in 14 Tagen
3,7 (10 Bewertungen)
4,1
4,1
Avatar des Nutzers
See private message.
$25,50 USD in 14 Tagen
5,0 (26 Bewertungen)
3,8
3,8
Avatar des Nutzers
See private message.
$85 USD in 14 Tagen
5,0 (7 Bewertungen)
3,4
3,4
Avatar des Nutzers
See private message.
$34 USD in 14 Tagen
4,6 (14 Bewertungen)
3,4
3,4
Avatar des Nutzers
See private message.
$63,75 USD in 14 Tagen
4,8 (16 Bewertungen)
3,1
3,1
Avatar des Nutzers
See private message.
$25,50 USD in 14 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
See private message.
$85 USD in 14 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
United States
5,0
4
Mitglied seit Nov. 19, 2001

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.