Data Meter is a Java Maven project that processes mobile data usage logs, calculates total usage and cost per user, and applies configurable surcharges and thresholds.
- Aggregates 4G/5G and roaming usage by mobile number
- Applies custom rates and surcharges
- Handles malformed input gracefully
- Includes unit tests with JUnit
- Configuration-driven using
config.properties
Clone the Repository
Move to respective Directory
- cd data-meter
Build the project
- mvn clean install
Run the project
- mvn exec:java
Inputs
-
Input to the project is one or more .txt files representing monthly usage data.
-
Files are passed as comma-separated values.
-
After processing, the app generates: An aggregated .csv report based on mobile number usage.
-
An interactive prompt where you can enter a mobile number to see specific user data.
Run Tests - To run unit tests
- mvn test