https://github.com/blackbossx/area-volume-calculator
https://github.com/blackbossx/area-volume-calculator
area area-calculator calculator calculator-application volume volume-calculator
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackbossx/area-volume-calculator
- Owner: BlackBossX
- Created: 2019-11-23T21:29:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-19T03:57:07.000Z (9 months ago)
- Last Synced: 2025-02-03T13:18:35.169Z (9 months ago)
- Topics: area, area-calculator, calculator, calculator-application, volume, volume-calculator
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Area and Volume Calculator
Welcome to the **Area and Volume Calculator** repository! This Python application provides an interactive interface for calculating various geometrical areas and volumes. Whether you're a student, engineer, or math enthusiast, this tool makes calculations quick and simple.
## Features
### Area Calculations
- **Triangle**: Base and height-based area calculation.
- **Square/Rectangle**: Calculates area using length and width.
- **Circle**: Computes area using radius.
- **Sector**: Calculates area using radius and angle.
- **Parallelogram**: Computes area using base and height.
- **Trapezoid**: Calculates area using base, top bar, and height.### Volume Calculations
- **Cube**: Computes volume using the side length.
- **Cuboid**: Computes volume using base, height, and width.
- **Triangular Prism**: Calculates volume using base, height, and length.
- **Cylinder**: Computes volume using radius and height.
- **Square Pyramid**: Calculates volume using base length and height.
- **Sphere**: Computes volume using radius.## How to Use
### Prerequisites
- Python 3.x must be installed on your system.### Running the Application
1. Clone this repository:
```bash
git clone https://github.com/BlackBossX/Area-Volume-Calculator.git
```
2. Navigate to the project directory:
```bash
cd Area-Volume-Calculator
```
3. Run the Python script:
```bash
python calculator.py
```
4. Follow the prompts to select the desired calculation.### Example Input
For calculating the area of a triangle:
1. Select "Area Calculator" by entering `1`.
2. Choose "Triangle Area" by entering `1`.
3. Enter the base and height values as prompted.
4. View the calculated area result.## Code Structure
- **Functions**: Each shape has its dedicated function for area or volume calculation.
- **User Interface**: The program provides an interactive text-based menu for users to select the desired calculation type and shape.## Example Output
```
--------------------------------------------------
Area and Volume Calculator
by BlackBossX
Visit for more: www.blackboss.xyz
--------------------------------------------------
Enter (1) Area Calculator
Enter (2) Volume Calculator
1
--------------------------------------------------
Enter (1) Triangle Area
Enter (2) Square Area
...
Enter Base Size:
10
Enter Height Size:
5
Triangle's area: 25.0
```## Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request.## Contact
For support, email malandealwis@gmail.com---
Happy Calculating! 😊