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
Ταυτότητα εργασίας: 2875852

Σχετικά με την εργασία

10 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 22 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
10 freelancers δίνουν μια μέση προσφορά $13 USD για αυτή τη δουλειά
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
4,4 (72 αξιολογήσεις)
5,5
5,5
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
4,7 (40 αξιολογήσεις)
4,7
4,7
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
5,0 (53 αξιολογήσεις)
3,3
3,3
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
5,0 (8 αξιολογήσεις)
3,2
3,2
Avatar Χρήστη
See private message.
$6,80 USD σε 14 ημέρες
5,0 (16 αξιολογήσεις)
2,9
2,9
Avatar Χρήστη
See private message.
$10,63 USD σε 14 ημέρες
4,5 (18 αξιολογήσεις)
2,4
2,4
Avatar Χρήστη
See private message.
$11,05 USD σε 14 ημέρες
4,9 (5 αξιολογήσεις)
1,1
1,1
Avatar Χρήστη
See private message.
$8,07 USD σε 14 ημέρες
3,9 (7 αξιολογήσεις)
1,3
1,3
Avatar Χρήστη
See private message.
$12,75 USD σε 14 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
See private message.
$12,75 USD σε 14 ημέρες
0,0 (1 αξιολόγηση)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
United States
5,0
2
Μέλος από Μαρ 7, 2003

Επαλήθευση Πελάτη

Άλλες δουλειές από αυτόν τον πελάτη

Working Video Store
$7.5-12.5 USD
Online Auction
$19-24 USD
New ADT Matrix
$30-5000 USD
Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.