Skip to content

okjordanwood/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Application

A simple console-based calculator application built in C++ that supports various mathematical operations including addition, subtraction, multiplication, division, modulus, exponentiation, and square root calculations. This project demonstrates basic C++ programming concepts such as loops, conditionals, and functions.

Features

  • Addition (+): Calculates the sum of two numbers.
  • Subtraction (-): Computes the difference between two numbers.
  • Multiplication (*): Multiplies two numbers.
  • Division (/): Divides the first number by the second (with zero division check).
  • Modulus (%): Finds the remainder when the first number is divided by the second.
  • Exponentiation (^): Raises the first number to the power of the second.
  • Square Root (√): Computes the square root of a number.
  • Exit: Terminates the program.

Requirements

  • C++ Compiler: Ensure you have a C++ compiler installed (e.g., GCC, Clang).
  • C++ Standard: C++11 or higher is recommended.

Usage

  1. Run the Application:
  • Start the application by executing the compiled binary as shown above.

2 Select an Operation:

  • You will be presented with a menu of operations. Enter the number corresponding to your desired operation.
  1. Input Numbers:
  • Depending on the operation selected, enter the required numbers. For operations other than square root, provide two numbers. For square root, provide only one number.
  1. View Result:
  • The application will display the result of the selected operation.
  1. Exit the Application:
  • To exit, select the 8 option from the menu.

Contribution

Feel free to contribute to this project by submitting issues or pull requests. If you have any suggestions for new features or improvements, please let me know!

Author

Jordan Wood (Copyright 2024)

License

This program is provided under the copyright and license terms specified by Jordan Wood in 2024.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published