This project is a web application built using Dash, a Python framework for creating interactive web applications. The application allows users to input the number of apples they have and the number of apples their friends have, and it provides visualizations and calculations of the mean, median, and mode of the apple quantities.
- Input boxes for the user's apple quantity and their friends' apple quantities
- Bar chart visualization of the apple quantities for each person
- Calculation and display of the mean, median, and mode values
- Dynamic explanations of the mean, median, and mode calculations
- Interactive elements such as emojis and annotations on the bar chart
- Python
- Dash framework
- Plotly library
- Statistics module
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/MahmoudHassan/mean-median-mode-apples.git
- Install the required dependencies:
pip install dash plotly numpy statistics
- Run the application:
python app.py
- Open your web browser and navigate to http://localhost:7002 to access the application.
Alternatively, you can directly access the live version of the application hosted on https://applestory.egylogic.com/.
- Enter the number of apples you have in the input box labeled "You".
- Enter the number of apples each of your friends have in their respective input boxes.
- The bar chart will update to display the apple quantities for each person.
- The mean, median, and mode values will be calculated and displayed below the chart.
This project is licensed under the MIT License.