i want to create a %body fat application probably in
java,, i will use
JSF as my MVC framwork.
i have already coded the simple part for asking the user his waist circumference and wrist circumference.
the i get the difference as the "result"
I will then then pick the result and look up in a table (as attached) where the top row is the 'result' from my previous working
then the left COLUMN of my table (see the excel snip attached) is for the body weight,,,
the user will input the body weight and i will the cross check where the body weight and the 'result' cross check in the table is the '% body fat'
which is the best approach for this proble. i was figuring out working with arrays , hashmaps, databales or hardcoding the values in a java class and use 'if else'
but the data is large.