A Java Swing application that helps users calculate total monthly costs for smartphone plans, including device payments, service plans, and entertainment bundles with automatic discount calculations.
- Phone Selection: Choose from multiple device options with monthly payment plans
- Service Plans: Unlimited and shared data options
- Entertainment Bundles: Disney+, Hulu, and Sports packages
- Smart Discounts: Automatic 15% discount for 2 services, 20% for 3+ services
- Input Validation: User-friendly dialogs with cancellation support
- Professional Output: Formatted pricing with customer information summary
- JDK 21 (Temurin recommended)
- Maven 3.9+
# Build the project
mvn clean package
# Run the application
java -jar target/smartphone-plan-calculator-1.0.0.jar# Compile
javac SmartphonePlanCalculator.java
# Run
java SmartphonePlanCalculator- Launch the application
- Enter customer name
- Select phone model (prices range from $29.16 to $83.33/month)
- Choose service plan (Unlimited or Shared Data)
- Select entertainment bundles (optional)
- View calculated total with automatic discounts applied
- Budget models starting at $29.16/month
- Premium models up to $83.33/month
- Unlimited Data
- Shared Data options
- Disney+
- Hulu
- Sports packages
- 2 Services: 15% discount
- 3+ Services: 20% discount
# Clone the repository
git clone https://github.com/maxwell-hauser/java_smartphone_plan_calculator.git
cd java_smartphone_plan_calculator
# Build with Maven
mvn clean install
# Run tests
mvn testThis project is licensed under the MIT License - see the LICENSE file for details.
Maxwell Hauser
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.