Modular Kotlin project that emulates calculating a water bill invoice.
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── gradle.xml
│ ├── kotlinc.xml
│ ├── misc.xml
│ └── vcs.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle
└── src
├── main
│ └── kotlin
│ ├── AppMessages.kt
│ ├── Functions.kt
│ ├── Main.kt
│ ├── consoleColors.kt
│ └── utilities.kt
└── test
└── kotlin
└── FunctionsKtTest.kt
- src/main/kotlin/Main.kt: Main application code.
- src/main/kotlin/AppMessages.kt: Modular file with input and output functions to get values and data from the user.
- src/main/kotlin/Functions.kt: Modular file with functions and logic to execute the aplication.
- src/main/kotlin/utilities.kt: Modular file with reusable methods.
- src/main/kotlin/consoleColors.kt: File with constants for terminal colors.
- src/test/kotlin/FunctionsKtTest.kt: Tests for all functions in Functions.kt.
Caution
To execute the application you may have the Amazon Corretto 17 SDK.
This is an example of the code execution:
Important
All functions have data type error and range error control. The program is safe to use without any problems.