I’m relatively new to Kotlin I’m building this simple calculator for the gym where users can calculate and submit data, weight, reps, and RPE with this information they can then calculate an estimated 1RM and next set weight.
I’ve built something similar in Excel where I use a cross-reference datasheet, it works fairly simply the user’s input, amount of reps(6) and RPE rate(8) would lookup the corresponding %(79) input weight(120) 120/79x100 = 1rm (152)
And the other way around wanted reps(3) wanted RPE (9) corresponding %(89) 1rm (152)
152x0,89 = 135
I can’t figure out how to build something similar in Kotlin. Anyone got any idea how to make this work?