Skip to content

A basic calculator programmed in Python that requests input and gives calculated output based on addition, subtraction, multiplication, division, modulus, and exponentiation.

License

Notifications You must be signed in to change notification settings

jonwhitmer/simplecalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

This project is a simple calculator implemented in Python. It can perform basic arithmetic operations like addition, subtraction, multiplication, division, modulus, and exponentiation.

Features

  • Interactive command-line interface.
  • Supports operations: addition (+), subtraction (-), multiplication (*), division (/), modulus (%), and exponentiation (^).
  • Allows continuous operations with the last calculated value.

Prerequisites

Before running this project, make sure you have Python installed on your system. The calculator is compatible with Python 3.

Getting Started

To run the calculator, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/yourusername/simple-calculator.git
  1. Navigate to the cloned directory:
cd simple-calculator
  1. Run the script with Python:
python test.py

Usage

When you run the calculator, it will prompt you to enter the first operand, an operator, and the second operand. After pressing Enter, it will display the result and offer options to perform additional calculations, clear the calculator, or turn off the calculator.

Contributing

If you have suggestions for adding or improving features, please fork the repository and create a pull request, or open an issue with the tag "enhancement".

License

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

Contact

For any additional questions about this project, reach out to Jon Whitmer at jonwhitmer23@gmail.com.


Copyright © 2023 Jon Whitmer. All rights reserved.

About

A basic calculator programmed in Python that requests input and gives calculated output based on addition, subtraction, multiplication, division, modulus, and exponentiation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages