Skip to content

headdawnLight/cpp-cli-calculator

Repository files navigation

cpp-cli-calculator

This is a simple calculator program running in a command line interface. It was developed on Microsoft Visual Studio 2019 with the C++ programming language.

Introduction

The basic universal computation process consists of four operations. These are addition, subtraction, division and multiplication. These operations are called arithmetic operations in mathematics.

Arithmetic operations form the basic working principle of calculators. To perform a simple arithmetic operation, we need two operands and an operator. The operator processes the two operands and the computation is done.

This program, prepared with this logic, first asks the user for the first operand, then the operator, and then the second operand. When the process is completed, the program performs its last task and asks if you want to perform a new action.

This is the first program I developed while learning the basics of programming. You can access the source code of this program and run and test it in your own development environment.

Technology and tools I used while developing this program:

  • Microsoft Visual Studio 2019
  • C++
  • Git
  • GitHub

Installation

Clone the repository:

$ git clone https://github.com/headdawnLight/cpp-cli-calculator.git

Run and test the source codes in your own development environment.

Usage

Step by step

  1. Enter the first operand number.

  2. Enter the operator to perform arithmetic operation.

  3. Enter the second operand number.

  4. Enter the "C" key to perform another operation.

  5. Enter the "E" key to exit the program.

cli-cal

License

MIT License

Copyright (c) 2021 Sertan Işık

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A simple calculator program that runs on a command line interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages