GithubHelp home page GithubHelp logo

matrix_multplier's Introduction

NMEA GPS Sentence Parser

Page: 1 of 3
EGRE 347 Applied Object Oriented Programming
Homework #3 โ€“ C++ Operator Overloading

This homework must be your own (individual) work as defined in the course syllabus and discussed in class.

You have been provided with an implementation of a 2x2 Matrix class. The Matrix class is defined in the header file called matrix.h and implementation of the current Matrix class methods is in the matrix.cpp file. In addition, there is a main.cpp file that tests the initial implementation of the Matrix class, along with an appropriate Makefile.

Assignment Requirements

  1. Add overloaded operators for the following:

    • Assignment operator =
    • Matrix addition +
    • Matrix subtraction -
    • Matrix multiplication *
    • Matrix division /
    • Multiplication operator * for multiplying a matrix by a scalar double quantity.
  2. Implement an insertion operator << for:

    • Printing the matrix using cout
    • The cout insertion operator output for the Matrix should result in exactly the same output as the print() method.
    • Printing the matrix to a file.
  3. Implement an extraction operator >> for reading a matrix from a file. The input file format should resemble:

-10.0 20.0
-30.0 40.0
  1. Use the provided main2.cpp to test your implementation. Ensure your Matrix class implementation complies with the interface used in this main file. You are not permitted to change the main2.cpp file in any way.

Sample Output

a matrix is:
--- ---
| 0.0000 0.0000 |
| |
| 0.0000 0.0000 |
--- ---
... [continue with the rest of the output]

File Output Example

-20.0 40.0
-60.0 80.0

Submission

  1. Create a git bundle file named hw3.bundle containing all your source files.
  2. Ensure you have a working Makefile to compile your solution in C++. Your solution should compile without any errors or warnings.
  3. Include a screenshot of the test program being executed on YOUR Raspberry Pi computer. Failure to include this screenshot will result in your program receiving a maximum grade of 50%.
  4. Submit by attaching the git bundle file to the assignment submission page.
  5. Ensure adherence to the class policy regarding late submissions. No late submissions are permitted unless prior arrangement has been made with the instructor.

matrix_multplier's People

Contributors

manzmike avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.