Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Matrix Calculator in C++

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.

What it can do

  • 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

What I practiced with this project

  • 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

Project structure

matrix-calculator-cpp/
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ main.cpp
โ”‚
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ .gitignore

How to run

g++ src/main.cpp -o matrix
./matrix

Limitations

  • Supports matrices up to 100ร—100 only
  • Console-based application (no GUI)
  • Basic input validation
  • Inverse calculation implemented manually

What I learned

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

๐Ÿ‘ฉโ€๐Ÿ’ป About me

Fateme Khosravi Computer Science graduate interested in AI, Data Science, and Systems Analysis

About

A console-based matrix calculator in C++ supporting basic matrix operations including addition, subtraction, multiplication, inverse-based division, and determinant calculation.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages