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.