I'm trying to make a Fuel Calculator for Android, but the problem I have is that I don't know the code commands in Android Studio Java. What do I need to know is how do I tie the buttons to these formulas?
100 x Fuel/KM = Consumption
Fuel/Consumption x 100 = The distance that can be traveled
Fuel – Done KMs*Consumption/100 = Fuel remaining