Skip to content

About

Interactive smartphone plan cost calculator with dynamic pricing and multi-service discounts. Users select phone models, service plans, and entertainment packages with automatic discount calculation (15% for 2 services, 20% for 3+ services).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Smartphone Plan Calculator

Java Maven License Status

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.

✨ Features

  • 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

📋 Requirements

  • JDK 21 (Temurin recommended)
  • Maven 3.9+

🚀 Quick Start

Using Maven (Recommended)

# Build the project
mvn clean package

# Run the application
java -jar target/smartphone-plan-calculator-1.0.0.jar

Without Maven

# Compile
javac SmartphonePlanCalculator.java

# Run
java SmartphonePlanCalculator

📖 Usage

  1. Launch the application
  2. Enter customer name
  3. Select phone model (prices range from $29.16 to $83.33/month)
  4. Choose service plan (Unlimited or Shared Data)
  5. Select entertainment bundles (optional)
  6. View calculated total with automatic discounts applied

💰 Pricing Details

Phone Options

  • Budget models starting at $29.16/month
  • Premium models up to $83.33/month

Service Plans

  • Unlimited Data
  • Shared Data options

Entertainment Bundles

  • Disney+
  • Hulu
  • Sports packages

Automatic Discounts

  • 2 Services: 15% discount
  • 3+ Services: 20% discount

🏗️ Building from Source

# 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 test

📄 License

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

👤 Author

Maxwell Hauser

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

About

Interactive smartphone plan cost calculator with dynamic pricing and multi-service discounts. Users select phone models, service plans, and entertainment packages with automatic discount calculation (15% for 2 services, 20% for 3+ services).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages