The Trip Application is a Java-based application that allows users to plan a trip by entering various segments. The application calculates the total distance and cost of the trip based on the fuel efficiency and cost of gasoline.
- Java 11 or higher
- Maven
- Clone the repository to your local machine.
- Navigate to the project directory in the terminal.
- Run
mvn clean install
to build the project and install dependencies. - Run
mvn exec:java -Dexec.mainClass="com.example.trip.TripApplication"
to start the application. - Follow the prompts to enter the fuel efficiency, cost of gasoline, and trip segments.
- Navigate to the project directory in the terminal.
- Run
mvn test
to execute the unit tests.
- Run
mvn surefire-report:report
to generate the Surefire test report. - Open
target/site/surefire-report.html
in your web browser to view the report.
- Prompt for fuel efficiency and cost of gasoline.
- Add multiple trip segments by entering the latitude and longitude of each segment.
- Calculate the distance and cost of each segment, as well as the total distance and cost of the trip.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.