Giter Site home page Giter Site logo

abdullah4tech / calculator.cpp Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 7 KB

This is a simple calculator program implemented in C++. It provides various mathematical operations such as addition, subtraction, multiplication, division, exponentiation, square root, sine, cosine, tangent, and logarithm.

License: MIT License

C++ 100.00%

calculator.cpp's Introduction

Calculator Program

This is a simple calculator program implemented in C++. It provides various mathematical operations such as addition, subtraction, multiplication, division, exponentiation, square root, sine, cosine, tangent, and logarithm.

Getting Started

Prerequisites

  • C++ compiler

Compilation

  1. Clone the repository or download the source code files.
  2. Open a terminal or command prompt.
  3. Navigate to the directory where the source code files are located.
  4. Compile the program using the following command:

Note: You can replace calculator with your desired output executable name.

Usage

  1. Run the compiled executable by executing the following command:
  2. Follow the on-screen instructions to perform various mathematical calculations.
  3. Select the desired operation by entering the corresponding number.
  4. Enter the required inputs when prompted.
  5. View the calculated results on the screen.

Features

  • Addition: Adds two numbers.
  • Subtraction: Subtracts one number from another.
  • Multiplication: Multiplies two numbers.
  • Division: Divides one number by another.
  • Exponentiation: Raises a number to a specified power.
  • Square Root: Calculates the square root of a number.
  • Sine: Calculates the sine of an angle.
  • Cosine: Calculates the cosine of an angle.
  • Tangent: Calculates the tangent of an angle.
  • Logarithm: Calculates the natural logarithm of a number.
  • Logarithm (Base 10): Calculates the logarithm of a number with base 10.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • The mathematical calculations are performed using the C++ <cmath> library functions.

calculator.cpp's People

Contributors

abdullah4tech 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.