This is a simple matrix calculator written in C++ as part of my introductory programming course.
The main goal of this project was to practice basic programming concepts and get more comfortable with working with matrices and problem-solving in code.
- Input matrices A and B
- Add and subtract matrices
- Multiply matrices
- Scalar multiplication
- Calculate determinant
- Compute inverse (used for division operation)
- Display and swap matrices
- Menu-based user interaction
- Working with 2D arrays in C++
- Breaking problems into smaller functions
- Using nested loops
- Implementing mathematical logic in code
- Handling user input in a console application
matrix-calculator-cpp/
โ
โโโ src/
โ โโโ main.cpp
โ
โโโ README.md
โโโ .gitignore
g++ src/main.cpp -o matrix
./matrix- Supports matrices up to 100ร100 only
- Console-based application (no GUI)
- Basic input validation
- Inverse calculation implemented manually
This project helped me understand how to:
- Break a problem into smaller parts
- Implement mathematical operations in code
- Work with multi-dimensional arrays
- Write structured C++ programs
- Handle user interaction in console applications
Fateme Khosravi Computer Science graduate interested in AI, Data Science, and Systems Analysis