Skip to content

1_Data Meter is a Java-based Maven project that processes large telecom data usage logs to calculate and report mobile data usage costs. It reads multiple .txt files as input, aggregates usage per mobile number, applies defined rate rules and surcharges, and generates a detailed .csv report.

Notifications You must be signed in to change notification settings

Vasugi2003/Data_Meter

Repository files navigation

Data Meter 📊

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.


🧾 Features

  • 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

How to Run the Project

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

About

1_Data Meter is a Java-based Maven project that processes large telecom data usage logs to calculate and report mobile data usage costs. It reads multiple .txt files as input, aggregates usage per mobile number, applies defined rate rules and surcharges, and generates a detailed .csv report.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages