This program allows users to perform calculations on decimal numbers and exponential operations. It provides a menu-based interface where users can choose between a decimal calculator and an exponential calculator.
To use the program, follow the steps below:
- Clone or download the program's source code from the GitHub repository.
- Open the terminal or command prompt and navigate to the program's directory.
- Make sure you have Python installed on your system.
- Run the program by executing the following command:
python calculator.py
- Once the program starts, it will display the menu with the available options.
- Enter the corresponding number or key to select the desired calculator.
- Follow the prompts to enter the required inputs for the chosen calculator.
- The program will display the result of the calculation.
- After each calculation, you can choose to continue with the same calculator or switch to the other one.
- To exit the program, select the "0. EXIT" option from the menu.
- Allows users to perform calculations on decimal numbers.
- Rounds the result to the desired decimal place.
- Provides an option to switch between the decimal and exponential calculator.
- Enables users to calculate the result of exponential operations.
- Supports calculating the power of a base number.
- Offers the ability to switch between the exponential and decimal calculator.
Here's an example usage of the program:
Welcome to the Decimal and Exponential Calculator!
Please select an option:
1. Decimal Calculator
2. Exponential Calculator
0. EXIT
Enter your Choice: 1
Input your decimal number below: 3.14159
To how many decimal places? 2
The answer is: 3.14
Enter '2' to switch to MENU or '1' to continue: 2
Please select an option:
1. Decimal Calculator
2. Exponential Calculator
0. EXIT
Enter your Choice: 2
Enter your base number: 2
Enter your power: 5
The answer is: 32
Enter '1' to switch to MENU or '2' to continue: 1
Please select an option:
1. Decimal Calculator
2. Exponential Calculator
0. EXIT
Enter your Choice: 0
Program ended.
Contributions to the program are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on the GitHub repository.
This program is released under the MIT License.
Note: This is a fictional GitHub README.md file based on the provided code. Make sure to replace the placeholder content with the actual program details, installation instructions, usage examples, and any other relevant information specific to your program.